Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_config Modified Files: ecore_config.c Log Message: norti norti. very norti. dont free list nodes and then proceed to use the list->next member of a freed list node! :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config.c,v retrieving revision 1.47 retrieving revision 1.48 diff -u -3 -r1.47 -r1.48 --- ecore_config.c 23 Sep 2004 01:56:09 -0000 1.47 +++ ecore_config.c 29 Sep 2004 10:23:56 -0000 1.48 @@ -1233,8 +1233,11 @@ if (!(e = ecore_config_get(key))) return ECORE_CONFIG_ERR_NOTFOUND; - for (p = NULL, l = e->listeners; l; p = l, l = l->next) + for (p = NULL, l = e->listeners; l; p = l) { + Ecore_Config_Listener_List *nl; + + nl = l->next; if ((name && !strcmp(l->name, name)) || (l->listener == listener)) { ret = ECORE_CONFIG_ERR_SUCC; @@ -1245,6 +1248,7 @@ memset(l, 0, sizeof(Ecore_Config_Listener)); free(l); } + l = nl; } return ret; ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs