fixed a few minor bugs

This commit is contained in:
John Wiegley 2004-08-24 02:59:22 -04:00
parent 876f5b84ab
commit c3b1de42de
3 changed files with 2 additions and 3 deletions

View file

@ -21,7 +21,7 @@ AC_CHECK_LIB([xmlparse], [XML_ParserCreate],
[AC_DEFINE([READ_GNUCASH], [1], [Support reading gnucash files]) [AC_DEFINE([READ_GNUCASH], [1], [Support reading gnucash files])
AM_CONDITIONAL(READ_GNUCASH, true) AM_CONDITIONAL(READ_GNUCASH, true)
AC_SUBST(LIBS, "-lxmlparse -lxmltok $LIBS")], AC_SUBST(LIBS, "-lxmlparse -lxmltok $LIBS")],
[AC_MSG_NOTICE([Could not find xmlparse library; gnucash support disabled]) [AC_MSG_NOTICE([Could not find xmlparse library: Gnucash support disabled])
AM_CONDITIONAL(READ_GNUCASH, false)], AM_CONDITIONAL(READ_GNUCASH, false)],
[-lxmltok]) [-lxmltok])

View file

@ -194,6 +194,7 @@ void initialize()
void shutdown() void shutdown()
{ {
shutdown_amounts();
shutdown_formats(); shutdown_formats();
} }

View file

@ -141,9 +141,7 @@ regexps_to_predicate(std::list<std::string>::const_iterator begin,
int main(int argc, char * argv[], char * envp[]) int main(int argc, char * argv[], char * envp[])
{ {
#ifdef DO_CLEANUP
initialize(); initialize();
#endif
std::auto_ptr<journal_t> journal(new journal_t); std::auto_ptr<journal_t> journal(new journal_t);