wayland_shm: Move surface free into surface_destroy
The caller shouldn't have to free this.
This commit is contained in:
parent
5b4b18836a
commit
dd8d60ad28
|
@ -142,6 +142,8 @@ _evas_dmabuf_surface_destroy(Surface *s)
|
|||
|
||||
EINA_LIST_FREE(s->buffers, b)
|
||||
ecore_wl2_buffer_destroy(b);
|
||||
|
||||
free(s);
|
||||
}
|
||||
|
||||
Surface *
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue