From: Enlightenment C. <no...@cv...> - 2006-12-22 18:42:35
|
Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/engines/evas_software_x11 Modified Files: ewl_engine_evas_software_x11.c Log Message: - make sure the engines cleanup the Ewl_Engine_Info struct - shift the freeing of the engine name to the engine where it's set =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/engines/evas_software_x11/ewl_engine_evas_software_x11.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_engine_evas_software_x11.c 6 Dec 2006 20:21:58 -0000 1.6 +++ ewl_engine_evas_software_x11.c 22 Dec 2006 18:41:58 -0000 1.7 @@ -6,6 +6,7 @@ static void ee_canvas_setup(Ewl_Window *win, int debug); static int ee_init(Ewl_Engine *engine); +static void ee_shutdown(Ewl_Engine *engine); static void *canvas_funcs[EWL_ENGINE_CANVAS_MAX] = { @@ -57,12 +58,25 @@ info = NEW(Ewl_Engine_Info, 1); info->init = ee_init; + info->shutdown = ee_shutdown; info->hooks.canvas = canvas_funcs; engine->name = strdup("evas_software_x11"); engine->functions = info; DRETURN_INT(TRUE, DLEVEL_STABLE); +} + +static void +ee_shutdown(Ewl_Engine *engine) +{ + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("engine", engine); + + IF_FREE(engine->functions); + IF_FREE(engine->name); + + DLEAVE_FUNCTION(DLEVEL_STABLE); } static void |