From 669f00e2e20372a119123c520007de04b2831fd3 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 3 Nov 2016 12:24:25 -0400 Subject: [PATCH] avoid crash when calling e_pixmap_image_exists on wl pixmaps without buffers --- src/bin/e_pixmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index b6fda2531..916a96251 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -879,7 +879,8 @@ e_pixmap_image_exists(const E_Pixmap *cp) return !!cp->image; #endif #ifdef HAVE_WAYLAND - return (!!cp->data) || (e_comp->gl && (!cp->buffer->shm_buffer)) || cp->buffer->dmabuf_buffer; + return (!!cp->data) || + cp->buffer && ((e_comp->gl && (!cp->buffer->shm_buffer)) || cp->buffer->dmabuf_buffer); #endif return EINA_FALSE;