Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-10-11 15:19:28 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-10-11 15:19:28 (GMT)
commit88e2368e6e0b1b9007ccaba8275c9faec3e2da52 (patch)
tree47c51d0680abf95e4ddc16ec8ddfc864610c169a
parent557d2c4d2134223fc27a486561462fe35bb19f5d (diff)
Make sure metadata exists before reference it when opening a copy
-rw-r--r--shell/ev-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index e1a427d..97c9aa1 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2128,7 +2128,8 @@ ev_window_open_copy_at_dest (EvWindow *window,
{
EvWindow *new_window = EV_WINDOW (ev_window_new ());
- new_window->priv->metadata = g_object_ref (window->priv->metadata);
+ if (window->priv->metadata)
+ new_window->priv->metadata = g_object_ref (window->priv->metadata);
ev_window_open_document (new_window,
window->priv->document,
dest, 0, NULL);