Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-12-25 21:10:21 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-12-25 21:10:21 (GMT)
commita71c2d133840d261ee229f6a2abe90aed9d0dee4 (patch)
tree91ba2a201b8f4efea1272b91bf6a402cec8d79b9 /shell
parent47bf008787b6d613d0ecdc6b14c741519641c24e (diff)
Fix memory management
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 fde1dae..7491561 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2626,7 +2626,10 @@ view_menu_popup_cb (EvView *view,
if (ev_window->priv->link)
g_object_unref (ev_window->priv->link);
- ev_window->priv->link = link;
+ if (link)
+ ev_window->priv->link = g_object_ref (link);
+ else
+ ev_window->priv->link = NULL;
if (ev_window->priv->link &&
(ev_link_get_link_type (ev_window->priv->link) == EV_LINK_TYPE_EXTERNAL_URI)) {