gnucash stable: [gnc-plugin-page.c] unref builder if allocated
Christopher Lam
clam at code.gnucash.org
Sun Jun 25 19:38:15 EDT 2023
Updated via https://github.com/Gnucash/gnucash/commit/0e951339 (commit)
from https://github.com/Gnucash/gnucash/commit/c13f4f71 (commit)
commit 0e951339fabde97c43f64c300c05d213e6a4d294
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Mon Jun 26 00:17:27 2023 +0800
[gnc-plugin-page.c] unref builder if allocated
It would have been allocated in gnc_plugin_page_merge_actions from
gtk_builder_new()
diff --git a/gnucash/gnome-utils/gnc-plugin-page.c b/gnucash/gnome-utils/gnc-plugin-page.c
index de14e48c01..bd02abe3d4 100644
--- a/gnucash/gnome-utils/gnc-plugin-page.c
+++ b/gnucash/gnome-utils/gnc-plugin-page.c
@@ -523,6 +523,9 @@ gnc_plugin_page_finalize (GObject *object)
priv->books = NULL;
}
+ if (priv->builder)
+ g_object_unref (priv->builder);
+
page->window = NULL; // Don't need to free it.
gnc_gobject_tracking_forget (object);
Summary of changes:
gnucash/gnome-utils/gnc-plugin-page.c | 3 +++
1 file changed, 3 insertions(+)
More information about the gnucash-changes
mailing list