Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/engines/evas Modified Files: ewl_engine_evas.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/ewl_engine_evas.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_engine_evas.c 12 Oct 2006 21:41:17 -0000 1.6 +++ ewl_engine_evas.c 22 Dec 2006 18:41:58 -0000 1.7 @@ -7,6 +7,8 @@ static Evas_Smart *widget_smart = NULL; static int ee_init(Ewl_Engine *engine); +static void ee_shutdown(Ewl_Engine *engine); + static void ee_canvas_output_set(Ewl_Embed *embed, int x, int y, int width, int height); static void ee_canvas_render(Ewl_Embed *embed); @@ -90,6 +92,7 @@ info = NEW(Ewl_Engine_Info, 1); info->init = ee_init; + info->shutdown = ee_shutdown; info->hooks.canvas = canvas_funcs; info->hooks.theme = theme_funcs; @@ -97,6 +100,18 @@ 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); } 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