aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.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 /shell/e-shell.c
parent94ec01deda562c323ead315c4ea48043db68b8d0 (diff)
downloadgsoc2013-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 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 785485320f..547432bc2d 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -484,6 +484,12 @@ shell_dispose (GObject *object)
g_list_free (priv->loaded_backends);
priv->loaded_backends = NULL;
+ if (priv->preparing_for_line_change != NULL) {
+ g_object_remove_weak_pointer (
+ G_OBJECT (priv->preparing_for_line_change),
+ &priv->preparing_for_line_change);
+ }
+
/* Chain up to parent's dispose() method. */
G_OBJECT_CLASS (parent_class)->dispose (object);
}