From 638c3dfbe1171237c102244a9c8b5a529c536092 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 8 Nov 2016 12:46:32 -0500 Subject: [PATCH] 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 --- src/bin/e_pixmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index a7031cc54..0c3b7d340 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -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: