If efreet_menu_parse returns an actual menu, let's free the memory

allocated to it before we return.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-08-05 14:24:46 +01:00
parent 8810f69914
commit d384574095
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ ef_cb_menu_with_slashes(void)
if (menu)
{
printf("efreet_menu_get() didn't return NULL\n");
efreet_menu_free(menu);
return 0;
}