forked from enlightenment/enlightenment
always free wl pixmap buffer list on non-cache image clear
this is only used when the pixmap is freed, after which point accessing the list guarantees a crash
This commit is contained in:
parent
6f5feb99b2
commit
38e4e2b9a9
|
@ -162,8 +162,6 @@ _e_pixmap_wl_buffers_free(E_Pixmap *cp)
|
||||||
{
|
{
|
||||||
E_Comp_Wl_Buffer *b;
|
E_Comp_Wl_Buffer *b;
|
||||||
|
|
||||||
if (e_comp->rendering) return;
|
|
||||||
|
|
||||||
EINA_LIST_FREE(cp->free_buffers, b)
|
EINA_LIST_FREE(cp->free_buffers, b)
|
||||||
{
|
{
|
||||||
wl_list_remove(&b->deferred_destroy_listener.link);
|
wl_list_remove(&b->deferred_destroy_listener.link);
|
||||||
|
@ -805,6 +803,8 @@ e_pixmap_image_clear(E_Pixmap *cp, Eina_Bool cache)
|
||||||
wl_resource_destroy(cb);
|
wl_resource_destroy(cb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
_e_pixmap_wl_buffers_free(cp);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue