summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-08 12:46:32 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:45:37 -0500
commit638c3dfbe1171237c102244a9c8b5a529c536092 (patch)
treedff9647934c45c6eb94b93ada95581462dd31564
parent2108bee6163c3bbf2ae23734792db6f8227e2a0c (diff)
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
-rw-r--r--src/bin/e_pixmap.c4
1 files 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)
162{ 162{
163 E_Comp_Wl_Buffer *b; 163 E_Comp_Wl_Buffer *b;
164 164
165 if (e_comp->rendering) return;
166
167 EINA_LIST_FREE(cp->free_buffers, b) 165 EINA_LIST_FREE(cp->free_buffers, b)
168 { 166 {
169 wl_list_remove(&b->deferred_destroy_listener.link); 167 wl_list_remove(&b->deferred_destroy_listener.link);
@@ -805,6 +803,8 @@ e_pixmap_image_clear(E_Pixmap *cp, Eina_Bool cache)
805 wl_resource_destroy(cb); 803 wl_resource_destroy(cb);
806 } 804 }
807 } 805 }
806 else
807 _e_pixmap_wl_buffers_free(cp);
808#endif 808#endif
809 break; 809 break;
810 default: 810 default: