Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_ipc_handlers.h Log Message: Attach the already defined free callbacks. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.90 retrieving revision 1.91 diff -u -3 -r1.90 -r1.91 --- e_ipc_handlers.h 28 Sep 2005 19:46:58 -0000 1.90 +++ e_ipc_handlers.h 28 Sep 2005 20:06:49 -0000 1.91 @@ -189,6 +189,9 @@ #define END_RESPONSE(__res, __type) \ } \ ecore_event_add(__type, __res, NULL, NULL); +#define END_RESPONSE_CALLBACK(__res, __type, __callback) \ + } \ + ecore_event_add(__type, __res, __callback, NULL); # define SAVE e_config_save_queue() @@ -947,15 +950,7 @@ r->modules[count] = md; count++; } - END_RESPONSE(r, E_RESPONSE_MODULE_LIST); -#if 0 - if (r->count) - { - for (count = 0; count < r->count; count++) - free(r->modules[count]); - free(r->modules); - } -#endif + END_RESPONSE_CALLBACK(r, E_RESPONSE_MODULE_LIST, _e_cb_module_list_free); } END_GENERIC(); #endif @@ -1492,10 +1487,7 @@ res = E_RESPONSE_MODULE_DIRS_LIST; else if (!strcmp(type, "backgrounds")) res = E_RESPONSE_BACKGROUND_DIRS_LIST; - END_RESPONSE(r, res); -#if 0 - if (r->dirs) free(r->dirs); -#endif + END_RESPONSE_CALLBACK(r, res, _e_cb_dir_list_free); } END_GENERIC(); #endif ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs