mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user