Enlightenment CVS committal
Author : englebass
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_int_menus.c
Log Message:
Only free data when needed.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.220
retrieving revision 1.221
diff -u -3 -r1.220 -r1.221
--- e_int_menus.c 26 Jul 2007 11:34:08 -0000 1.220
+++ e_int_menus.c 26 Jul 2007 12:02:22 -0000 1.221
@@ -545,12 +545,16 @@
if (entry->icon)
{
- char *file;
+ if (entry->icon[0] == '/')
+ e_menu_item_icon_file_set(mi, entry->icon);
+ else
+ {
+ char *file;
- if (entry->icon[0] == '/') file = entry->icon;
- else file = efreet_icon_path_find(e_config->icon_theme,
entry->icon, "24x24");
- e_menu_item_icon_file_set(mi, file);
- E_FREE(file);
+ file = efreet_icon_path_find(e_config->icon_theme,
entry->icon, "24x24");
+ e_menu_item_icon_file_set(mi, file);
+ E_FREE(file);
+ }
}
if (entry->type == EFREET_MENU_ENTRY_SEPARATOR)
e_menu_item_separator_set(mi, 1);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs