r14616 - gnucash/trunk/src/engine - Plug a LotList leak; remove ominous comment about memory corruption.
Chris Shoemaker
chris at cvs.gnucash.org
Tue Aug 8 20:59:49 EDT 2006
Author: chris
Date: 2006-08-08 20:59:48 -0400 (Tue, 08 Aug 2006)
New Revision: 14616
Trac: http://svn.gnucash.org/trac/changeset/14616
Modified:
gnucash/trunk/src/engine/Period.c
Log:
Plug a LotList leak; remove ominous comment about memory corruption.
Modified: gnucash/trunk/src/engine/Period.c
===================================================================
--- gnucash/trunk/src/engine/Period.c 2006-08-08 23:16:54 UTC (rev 14615)
+++ gnucash/trunk/src/engine/Period.c 2006-08-09 00:59:48 UTC (rev 14616)
@@ -395,13 +395,7 @@
LotList *lnext = lnode->next;
if (lot_has_open_trans_tree (lot))
- {
- lot_list = g_list_remove_link (lot_list, lnode);
- /* XXX freeing this node somehow leads to glib g_list
- * memory corruption which later takes down the system.
- * I don't see why. */
- /* g_list_free_1 (lnode); */
- }
+ lot_list = g_list_delete_link(lot_list, lnode);
lnode = lnext;
}
LEAVE (" ");
More information about the gnucash-changes
mailing list