Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/cpufreq Modified Files: e_mod_main.c Log Message: a lot more use of stringshare. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/cpufreq/e_mod_main.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- e_mod_main.c 25 Oct 2005 10:51:58 -0000 1.26 +++ e_mod_main.c 4 Dec 2005 12:03:58 -0000 1.27 @@ -276,8 +276,9 @@ _cpufreq_status_free(e->status); - free(e->set_exe_path); evas_list_free(e->conf->faces); + free(e->set_exe_path); + if (e->conf->governor) evas_stringshare_del(e->conf->governor); free(e->conf); free(e); } @@ -405,9 +406,8 @@ e->conf->restore_governor = e_menu_item_toggle_get(mi); if ((!e->conf->governor) || strcmp(e->status->cur_governor, e->conf->governor)) { - if (e->conf->governor) - free(e->conf->governor); - e->conf->governor = strdup(e->status->cur_governor); + if (e->conf->governor) evas_stringshare_del(e->conf->governor); + e->conf->governor = evas_stringshare_add(e->status->cur_governor); } e_config_save_queue(); } @@ -423,9 +423,8 @@ if (governor) { _cpufreq_set_governor(e, governor); - if (e->conf->governor) - free(e->conf->governor); - e->conf->governor = strdup(governor); + if (e->conf->governor) evas_stringshare_del(e->conf->governor); + e->conf->governor = evas_stringshare_add(governor); } e_config_save_queue(); } ------------------------------------------------------- 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