Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window.c')
-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);
}