[Gnucash-changes] r12876 - gnucash/trunk - Unregister this
component properly when destroying it.
David Hampton
hampton at cvs.gnucash.org
Wed Jan 18 23:04:03 EST 2006
Author: hampton
Date: 2006-01-18 23:04:03 -0500 (Wed, 18 Jan 2006)
New Revision: 12876
Trac: http://svn.gnucash.org/trac/changeset/12876
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-search/gnc-general-search.c
Log:
Unregister this component properly when destroying it.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-01-19 04:02:01 UTC (rev 12875)
+++ gnucash/trunk/ChangeLog 2006-01-19 04:04:03 UTC (rev 12876)
@@ -1,5 +1,8 @@
2006-01-18 David Hampton <hampton at 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.
Modified: gnucash/trunk/src/gnome-search/gnc-general-search.c
===================================================================
--- gnucash/trunk/src/gnome-search/gnc-general-search.c 2006-01-19 04:02:01 UTC (rev 12875)
+++ gnucash/trunk/src/gnome-search/gnc-general-search.c 2006-01-19 04:04:03 UTC (rev 12876)
@@ -157,7 +157,8 @@
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);
}
More information about the gnucash-changes
mailing list