From: Braden M. <br...@us...> - 2007-02-05 07:08:47
|
Update of /cvsroot/openvrml/openvrml/src/openvrml-xembed In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16471/src/openvrml-xembed Modified Files: main.cpp Log Message: Dismiss the error_guard when returning frommain prematurely (but without a GError). Index: main.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/openvrml-xembed/main.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.cpp 5 Feb 2007 05:36:12 -0000 1.2 --- main.cpp 5 Feb 2007 07:08:43 -0000 1.3 *************** *** 371,374 **** --- 371,375 ---- if (version) { cout << application_name << ' ' << PACKAGE_VERSION << endl; + error_guard.dismiss(); return EXIT_SUCCESS; } *************** *** 376,379 **** --- 377,381 ---- if (!::args) { cerr << argv[0] << ": missing required XID argument" << endl; + error_guard.dismiss(); return EXIT_FAILURE; } *************** *** 384,387 **** --- 386,390 ---- } catch (const boost::bad_lexical_cast & ex) { cerr << argv[0] << ": expected integer value for XID argument" << endl; + error_guard.dismiss(); return EXIT_FAILURE; } |