Skip to content

Commit

Permalink
[gnc-plugin-page.c] unref builder if allocated
Browse files Browse the repository at this point in the history
It would have been allocated in gnc_plugin_page_merge_actions from
gtk_builder_new()
  • Loading branch information
christopherlam committed Jun 25, 2023
1 parent c13f4f7 commit 0e95133
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnucash/gnome-utils/gnc-plugin-page.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0e95133

Please sign in to comment.