gnucash maint: [gnc-icons.c] plug memory leak

Christopher Lam clam at code.gnucash.org
Mon Mar 1 10:21:19 EST 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/6bfab011 (commit)
	from  https://github.com/Gnucash/gnucash/commit/cf484bbe (commit)



commit 6bfab011c4fb1ede8282cc98840b2def2b2b6336
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Mar 1 22:45:21 2021 +0800

    [gnc-icons.c] plug memory leak

diff --git a/gnucash/gnome-utils/gnc-icons.c b/gnucash/gnome-utils/gnc-icons.c
index 40cb0af02..313413f54 100644
--- a/gnucash/gnome-utils/gnc-icons.c
+++ b/gnucash/gnome-utils/gnc-icons.c
@@ -87,6 +87,8 @@ gnc_load_app_icons (void)
             PINFO ("Path %i: %s", i, path[i]);
     }
 
+    g_strfreev (path);
+
     for (i = 0; icon_files[i]; i++)
     {
         gchar *file = icon_files[i];



Summary of changes:
 gnucash/gnome-utils/gnc-icons.c | 2 ++
 1 file changed, 2 insertions(+)



More information about the gnucash-changes mailing list