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:
Mike Blumenkrantz 2016-11-08 12:46:32 -05:00
parent 6f5feb99b2
commit 38e4e2b9a9
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,6 @@ _e_pixmap_wl_buffers_free(E_Pixmap *cp)
{
E_Comp_Wl_Buffer *b;
if (e_comp->rendering) return;
EINA_LIST_FREE(cp->free_buffers, b)
{
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);
}
}
else
_e_pixmap_wl_buffers_free(cp);
#endif
break;
default: