forked from enlightenment/efl
Avoid potential memleak on rotation of tilebuf.
Port of 70f443d8a8
to wayland_shm
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
a9853f96f7
commit
ce716ff052
|
@ -249,9 +249,16 @@ eng_setup(Evas *eo_evas, void *einfo)
|
|||
|
||||
if ((re) && (re->ob)) ponebuf = re->ob->onebuf;
|
||||
|
||||
/* we have an existing render engine */
|
||||
/* free any existing tile buffer */
|
||||
if (re->tb) evas_common_tilebuf_free(re->tb);
|
||||
|
||||
/* we have an existing output buffer, free it */
|
||||
if (re->ob) re->outbuf_free(re->ob);
|
||||
|
||||
/* create new tile buffer */
|
||||
if ((re->tb = evas_common_tilebuf_new(w, h)))
|
||||
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||
|
||||
if ((re->ob = evas_swapbuf_setup(epd->output.w, epd->output.h,
|
||||
info->info.rotation,
|
||||
info->info.depth,
|
||||
|
|
Loading…
Reference in New Issue