wayland_shm: Move surface free into surface_destroy

The caller shouldn't have to free this.
This commit is contained in:
Derek Foreman 2017-11-30 11:44:23 -06:00
parent 5b4b18836a
commit dd8d60ad28
2 changed files with 2 additions and 1 deletions

View File

@ -142,6 +142,8 @@ _evas_dmabuf_surface_destroy(Surface *s)
EINA_LIST_FREE(s->buffers, b)
ecore_wl2_buffer_destroy(b);
free(s);
}
Surface *

View File

@ -71,7 +71,6 @@ _evas_outbuf_free(Outbuf *ob)
_evas_outbuf_idle_flush(ob);
if (ob->surface) ob->surface->funcs.destroy(ob->surface);
free(ob->surface);
eina_array_flush(&ob->priv.onebuf_regions);