aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-20 06:43:29 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-20 06:43:29 +0800
commitf4d748a85c534cb8a693b6a1f1b3353adfd73b5b (patch)
tree2a793f70989026a6b8706215e0ddefb413022d7c /mail/em-folder-tree-model.c
parent94ec01deda562c323ead315c4ea48043db68b8d0 (diff)
downloadgsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.tar.gz
gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.tar.zst
gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.zip
Fix similar weak pointer issues throughout.
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index d7c5261a7c..9c3ef60397 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -311,6 +311,12 @@ folder_tree_model_dispose (GObject *object)
priv = EM_FOLDER_TREE_MODEL_GET_PRIVATE (object);
+ if (priv->shell_backend != NULL) {
+ g_object_remove_weak_pointer (
+ G_OBJECT (priv->shell_backend), &priv->shell_backend);
+ priv->shell_backend = NULL;
+ }
+
if (priv->selection != NULL) {
g_object_weak_unref (
G_OBJECT (priv->selection), (GWeakNotify)