Enlightenment CVS committal Author : moom Project : e17 Module : libs/etk
Dir : e17/libs/etk/src/lib Modified Files: etk_theme.c Log Message: * [Etk_Theme] Fix a leak =================================================================== RCS file: /cvs/e/e17/libs/etk/src/lib/etk_theme.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- etk_theme.c 21 Mar 2007 18:15:26 -0000 1.13 +++ etk_theme.c 25 Mar 2007 10:54:29 -0000 1.14 @@ -122,7 +122,14 @@ */ Etk_Bool etk_theme_widget_set_from_name(const char *theme_name) { - return etk_theme_widget_set_from_path(etk_theme_widget_find(theme_name)); + char *path; + Etk_Bool result; + + path = etk_theme_widget_find(theme_name); + result = etk_theme_widget_set_from_path(path); + free(path); + + return result; } /** @@ -238,7 +245,14 @@ */ Etk_Bool etk_theme_icon_set_from_name(const char *theme_name) { - return etk_theme_icon_set_from_path(etk_theme_icon_find(theme_name)); + char *path; + Etk_Bool result; + + path = etk_theme_icon_find(theme_name); + result = etk_theme_icon_set_from_path(path); + free(path); + + return result; } /** ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs