From 568c0dcc4bf02c397bf0080e3baa3f3ced81d73c Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 26 Sep 2001 16:25:25 +0000 Subject: disconnect signals first thing 2001-09-26 JP Rosevear * gui/dialogs/comp-editor.c (comp_editor_destroy): disconnect signals first thing svn path=/trunk/; revision=13151 --- calendar/gui/dialogs/comp-editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index f88c6d2de6..dcec6bb251 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -248,6 +248,8 @@ comp_editor_destroy (GtkObject *object) editor = COMP_EDITOR (object); priv = editor->priv; + gtk_signal_disconnect_by_data (GTK_OBJECT (priv->client), editor); + if (priv->window) { gtk_widget_destroy (priv->window); priv->window = NULL; @@ -258,8 +260,6 @@ comp_editor_destroy (GtkObject *object) priv->comp = NULL; } - gtk_signal_disconnect_by_data (GTK_OBJECT (priv->client), editor); - g_free (priv); editor->priv = NULL; -- cgit