aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Untz <vincent@vuntz.net>2004-11-28 21:23:34 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-28 21:23:34 +0800
commitd603e36146d2bf98e8564ad11ac1fe2b24e24b47 (patch)
tree65d252cba0d7aa5b458fff43301339f58c244d69
parent82e9e16bda9398c1d0ddb27847c1fedd4d719cd9 (diff)
downloadgsoc2013-epiphany-d603e36146d2bf98e8564ad11ac1fe2b24e24b47.tar
gsoc2013-epiphany-d603e36146d2bf98e8564ad11ac1fe2b24e24b47.tar.gz
gsoc2013-epiphany-d603e36146d2bf98e8564ad11ac1fe2b24e24b47.tar.bz2
gsoc2013-epiphany-d603e36146d2bf98e8564ad11ac1fe2b24e24b47.tar.lz
gsoc2013-epiphany-d603e36146d2bf98e8564ad11ac1fe2b24e24b47.tar.xz
gsoc2013-epiphany-d603e36146d2bf98e8564ad11ac1fe2b24e24b47.tar.zst
gsoc2013-epiphany-d603e36146d2bf98e8564ad11ac1fe2b24e24b47.zip
Fixes leak.
2004-11-28 Vincent Untz <vincent@vuntz.net> * src/bookmarks/ephy-bookmarksbar-model.c: (impl_get_item_id): Fixes leak.
-rwxr-xr-xsrc/bookmarks/ephy-bookmarksbar-model.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-bookmarksbar-model.c b/src/bookmarks/ephy-bookmarksbar-model.c
index b1d49d981..e0d9bb1af 100755
--- a/src/bookmarks/ephy-bookmarksbar-model.c
+++ b/src/bookmarks/ephy-bookmarksbar-model.c
@@ -330,7 +330,10 @@ impl_get_item_id (EggToolbarsModel *eggmodel,
gchar **netscape_url;
netscape_url = g_strsplit (name, "\n", 2);
- if (!netscape_url || !netscape_url[URL]) return NULL;
+ if (!netscape_url || !netscape_url[URL]) {
+ g_strfreev (netscape_url);
+ return NULL;
+ }
node = ephy_bookmarks_find_bookmark (bookmarks, netscape_url[URL]);