gnucash stable: [dialog-price-edit-db.cpp] plug GList* leaks
Christopher Lam
clam at code.gnucash.org
Mon Apr 8 12:38:15 EDT 2024
Updated via https://github.com/Gnucash/gnucash/commit/4f5ee5dc (commit)
from https://github.com/Gnucash/gnucash/commit/233843f1 (commit)
commit 4f5ee5dc4e92345f91e06110bb677ab0d15b91c5
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Tue Apr 9 00:25:54 2024 +0800
[dialog-price-edit-db.cpp] plug GList* leaks
because `namespace_list` and `commodity_list` were being modified in
while loops until they were both nullptr, making g_list_free a
nop. rewrite to plug leaks. also, `list` is a PriceList* which needs
to be gnc_price_unref'd and g_list_freed.
Summary of changes:
gnucash/gnome/dialog-price-edit-db.cpp | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
More information about the gnucash-patches
mailing list