Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2004-12-21 21:09:52 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2004-12-21 21:09:52 (GMT)
commit496dac3760529669c8d4fa2e32e1797b092e7632 (patch)
tree8def62650b7d756c372def5ea1e21bebc5f6f599 /shell
parent44add0671daab5a40661a1de85bcf07eca3b6155 (diff)
dispose can be called multiple times.
Tue Dec 21 16:08:17 2004 Jonathan Blandford <jrb@redhat.com> * shell/ev-window.c (ev_window_dispose): dispose can be called multiple times.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 0fb34ec..7dad330 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -484,7 +484,10 @@ ev_window_dispose (GObject *object)
priv = EV_WINDOW (object)->priv;
- g_object_unref (priv->ui_manager);
+ if (priv->ui_manager) {
+ g_object_unref (priv->ui_manager);
+ priv->ui_manager = NULL;
+ }
G_OBJECT_CLASS (parent_class)->dispose (object);
}