Add code to the eng_output_free function to do any cleanup.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83255
This commit is contained in:
Christopher Michael 2013-01-24 09:17:26 +00:00 committed by Christopher Michael
parent ae0076c929
commit 3dcaec35b5
1 changed files with 18 additions and 0 deletions

View File

@ -222,7 +222,25 @@ eng_setup(Evas *eo_evas, void *einfo)
static void
eng_output_free(void *data)
{
Render_Engine *re;
if ((re = data))
{
re->outbuf_free(re->ob);
evas_common_tilebuf_free(re->tb);
if (re->rects)
evas_common_tilebuf_free_render_rects(re->rects);
if (re->prev_rects[0])
evas_common_tilebuf_free_render_rects(re->prev_rects[0]);
if (re->prev_rects[1])
evas_common_tilebuf_free_render_rects(re->prev_rects[1]);
if (re->prev_rects[2])
evas_common_tilebuf_free_render_rects(re->prev_rects[2]);
free(re);
}
evas_common_font_shutdown();
evas_common_image_shutdown();
}
static void