Unregister this component properly when destroying it.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12876 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2006-01-19 04:04:03 +00:00
parent 51bfd5a614
commit b4ef9f5b4f
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2006-01-18 David Hampton <hampton@employees.org>
* src/gnome-search/gnc-general-search.c: Unregister this component
properly when destroying it.
* src/gnome-utils/gnc-query-list.c: The GtkObject destroy function
can be called multiple times. Protect from unregistering the
component multiple times.

View File

@@ -157,7 +157,8 @@ gnc_general_search_destroy (GtkObject *object)
gnc_search_dialog_set_select_cb (priv->sw, NULL, NULL, FALSE);
gnc_search_dialog_disconnect (priv->sw, gsl);
priv->sw = NULL;
}
if (priv->component_id) {
/* Unregister ourselves */
gnc_unregister_gui_component (priv->component_id);
}