fileman menu leak
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 14:23:41 +0000 (14:23 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 14:23:41 +0000 (14:23 +0000)
SVN revision: 80866

src/modules/fileman/e_mod_menu.c

index cee1370..d104208 100644 (file)
@@ -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)