From 922032525343b0a9d84012b2d438590d5bec37e5 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Dec 2012 14:23:41 +0000 Subject: [PATCH] fileman menu leak SVN revision: 80866 --- src/modules/fileman/e_mod_menu.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/fileman/e_mod_menu.c b/src/modules/fileman/e_mod_menu.c index cee1370..d104208 100644 --- a/src/modules/fileman/e_mod_menu.c +++ b/src/modules/fileman/e_mod_menu.c @@ -252,8 +252,11 @@ _e_mod_fileman_parse_gtk_bookmarks(E_Menu *m, alias++; } uri = efreet_uri_decode(line); - if ((!uri) || (!uri->path)) continue; - if (!ecore_file_exists(uri->path)) continue; + if ((!uri) || (!uri->path) || (!ecore_file_exists(uri->path))) + { + if (uri) efreet_uri_free(uri); + continue; + } if (!subm) { if (need_separator) -- 2.7.4