Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/engines/evas_xrender_x11 Modified Files: ewl_engine_evas_xrender_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_xrender_x11/ewl_engine_evas_xrender_x11.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ewl_engine_evas_xrender_x11.c 6 Dec 2006 20:21:58 -0000 1.4 +++ ewl_engine_evas_xrender_x11.c 22 Dec 2006 18:41:58 -0000 1.5 @@ -7,6 +7,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] = { @@ -58,12 +59,25 @@ info = NEW(Ewl_Engine_Info, 1); info->init = ee_init; + info->shutdown = ee_shutdown; info->hooks.canvas = canvas_funcs; engine->name = strdup("evas_xrender_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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs