diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-20 06:43:29 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-20 06:43:29 +0800 |
commit | f4d748a85c534cb8a693b6a1f1b3353adfd73b5b (patch) | |
tree | 2a793f70989026a6b8706215e0ddefb413022d7c /mail | |
parent | 94ec01deda562c323ead315c4ea48043db68b8d0 (diff) | |
download | gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.tar gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.tar.gz gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.tar.bz2 gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.tar.lz gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.tar.xz gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.tar.zst gsoc2013-evolution-f4d748a85c534cb8a693b6a1f1b3353adfd73b5b.zip |
Fix similar weak pointer issues throughout.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-reader.c | 2 | ||||
-rw-r--r-- | mail/em-folder-tree-model.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index edea7cfa6f..9f07ae32a0 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -331,7 +331,7 @@ action_mail_flag_for_followup_cb (GtkAction *action, folder = message_list->folder; uids = message_list_get_selected (message_list); - em_utils_flag_for_followup (window, folder, uids); + em_utils_flag_for_followup (reader, folder, uids); } static void 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) |