mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Plug a LotList leak; remove ominous comment about memory corruption.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14616 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
dde4a52308
commit
cc71e25eea
@ -395,13 +395,7 @@ lot_list_preen_open_lots (LotList *lot_list)
|
||||
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 (" ");
|
||||
|
Loading…
Reference in New Issue
Block a user