Enlightenment CVS committal Author : sebastid Project : e_modules Module : slideshow
Dir : e_modules/slideshow Modified Files: e_mod_main.c Log Message: Remove strdup and fix memleak. =================================================================== RCS file: /cvsroot/enlightenment/e_modules/slideshow/e_mod_main.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- e_mod_main.c 14 Jan 2006 12:59:09 -0000 1.9 +++ e_mod_main.c 14 Jan 2006 15:56:11 -0000 1.10 @@ -267,6 +267,7 @@ e->cycle_timer = ecore_timer_del(e->cycle_timer); e->cycle_timer = NULL; } + if (e->display) free(e->display); free(e->conf); E_CONFIG_DD_FREE(e->conf_edd); @@ -535,7 +536,7 @@ snprintf(buffer, sizeof(buffer), "%s/.e/e/backgrounds", home); #endif bg_count = 0; - list = ecore_file_ls(strdup(buffer)); + list = ecore_file_ls(buffer); ecore_list_goto_first(list); while ((list_item = (char *) ecore_list_next(list)) != NULL) bg_count++; @@ -564,7 +565,7 @@ snprintf(buffer, sizeof(buffer), "%s/.e/e/backgrounds/%s", home, bg); #endif - if (buffer) e_lib_background_set(strdup(buffer)); + if (buffer) e_lib_background_set(buffer); } static void ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs