From f4d748a85c534cb8a693b6a1f1b3353adfd73b5b Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 19 Jun 2009 18:43:29 -0400 Subject: Fix similar weak pointer issues throughout. --- calendar/gui/dialogs/comp-editor.c | 6 ++++++ calendar/gui/e-calendar-table.c | 6 ++++++ calendar/gui/e-memo-table.c | 6 ++++++ 3 files changed, 18 insertions(+) (limited to 'calendar') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 268f61ac03..64f80b4557 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -1314,6 +1314,12 @@ comp_editor_dispose (GObject *object) priv = COMP_EDITOR_GET_PRIVATE (object); + if (priv->shell != NULL) { + g_object_remove_weak_pointer ( + G_OBJECT (priv->shell), &priv->shell); + priv->shell = NULL; + } + if (priv->client) { g_object_unref (priv->client); priv->client = NULL; diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index 3c11aa7238..7771be234f 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -595,6 +595,12 @@ calendar_table_dispose (GObject *object) priv = E_CALENDAR_TABLE_GET_PRIVATE (object); + if (priv->shell_view != NULL) { + g_object_remove_weak_pointer ( + G_OBJECT (priv->shell_view), &priv->shell_view); + priv->shell_view = NULL; + } + if (priv->model != NULL) { g_object_unref (priv->model); priv->model = NULL; diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c index 4ad24e5a34..4c6cd9b865 100644 --- a/calendar/gui/e-memo-table.c +++ b/calendar/gui/e-memo-table.c @@ -519,6 +519,12 @@ memo_table_dispose (GObject *object) priv = E_MEMO_TABLE_GET_PRIVATE (object); + if (priv->shell_view != NULL) { + g_object_remove_weak_pointer ( + G_OBJECT (priv->shell_view), &priv->shell_view); + priv->shell_view = NULL; + } + if (priv->model != NULL) { g_object_unref (priv->model); priv->model = NULL; -- cgit v1.2.3