r16745 - gnucash/trunk/src/engine - Fix the logic of the #if for the warning.

Derek Atkins warlord at cvs.gnucash.org
Thu Dec 27 09:02:06 EST 2007


Author: warlord
Date: 2007-12-27 09:02:06 -0500 (Thu, 27 Dec 2007)
New Revision: 16745
Trac: http://svn.gnucash.org/trac/changeset/16745

Modified:
   gnucash/trunk/src/engine/gnc-commodity.c
Log:
Fix the logic of the #if for the warning.

Modified: gnucash/trunk/src/engine/gnc-commodity.c
===================================================================
--- gnucash/trunk/src/engine/gnc-commodity.c	2007-12-27 13:06:12 UTC (rev 16744)
+++ gnucash/trunk/src/engine/gnc-commodity.c	2007-12-27 14:02:06 UTC (rev 16745)
@@ -628,7 +628,7 @@
 
   cm->mark = 0;
 
-#if !ACCOUNTS_CLEANED_UP
+#ifdef ACCOUNTS_CLEANED_UP
   /* Account objects are not actually cleaned up when a book is closed (in fact
    * a memory leak), but commodities are, so in currently this warning gets hit
    * quite frequently.  Disable the check until cleaning up of accounts objects



More information about the gnucash-changes mailing list