[yelp] yelp-view: Fix memory leaks
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] yelp-view: Fix memory leaks
- Date: Wed, 21 Nov 2012 15:13:18 +0000 (UTC)
commit 10af9590b220cd3a32d744a26b0542b94017bd61
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Aug 29 15:20:25 2012 +0200
yelp-view: Fix memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=683100
libyelp/yelp-view.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index 69239fc..5e21bbf 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -920,6 +920,7 @@ popup_open_link (GtkMenuItem *item,
uri = yelp_uri_new_relative (priv->uri, priv->popup_link_uri);
yelp_view_load_uri (view, uri);
+ g_object_unref (uri);
g_free (priv->popup_link_uri);
priv->popup_link_uri = NULL;
@@ -1444,6 +1445,7 @@ view_navigation_requested (WebKitWebView *view,
webkit_web_policy_decision_ignore (decision);
yelp_view_load_uri ((YelpView *) view, uri);
+ g_object_unref (uri);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]