diff options
author | JP Rosevear <jpr@ximian.com> | 2003-05-16 22:57:15 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-05-16 22:57:15 +0800 |
commit | 487093320532dc68dd89e4878850a5d55d2a6cbb (patch) | |
tree | b377f5d50b6cd789bba4a06d8986187f9c8dbe8b /calendar/gui | |
parent | 0873f0f22e444543392653523c75dd1f9713d7d3 (diff) | |
download | gsoc2013-evolution-487093320532dc68dd89e4878850a5d55d2a6cbb.tar.gz gsoc2013-evolution-487093320532dc68dd89e4878850a5d55d2a6cbb.tar.zst gsoc2013-evolution-487093320532dc68dd89e4878850a5d55d2a6cbb.zip |
unref the client and the ui component
2003-05-15 JP Rosevear <jpr@ximian.com>
* gui/dialogs/comp-editor.c (comp_editor_finalize): unref the
client and the ui component
svn path=/trunk/; revision=21211
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 70ad1abe8f..7a462c9a1f 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -262,8 +262,12 @@ comp_editor_finalize (GObject *object) editor = COMP_EDITOR (object); priv = editor->priv; - g_signal_handlers_disconnect_matched (priv->client, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, editor); - + if (priv->client) { + g_signal_handlers_disconnect_matched (priv->client, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, editor); + g_object_unref (priv->client); + priv->client = NULL; + } + /* We want to destroy the pages after the widgets get destroyed, since they have lots of signal handlers connected to the widgets with the pages as the data. */ @@ -275,6 +279,8 @@ comp_editor_finalize (GObject *object) priv->comp = NULL; } + bonobo_object_unref (priv->uic); + g_free (priv); editor->priv = NULL; |