summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-03 12:24:25 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:42:56 -0500
commit070eb16a17c709cd379901d0ee2ac34f03631d6e (patch)
tree07ec561d45c456b24f7bacf55c3bee8212557e34
parent1cbb0b215210c897b82f58c572052aa9e00c4b77 (diff)
avoid crash when calling e_pixmap_image_exists on wl pixmaps without buffers
-rw-r--r--src/bin/e_pixmap.c3
1 files changed, 2 insertions, 1 deletions
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)
879 return !!cp->image; 879 return !!cp->image;
880#endif 880#endif
881#ifdef HAVE_WAYLAND 881#ifdef HAVE_WAYLAND
882 return (!!cp->data) || (e_comp->gl && (!cp->buffer->shm_buffer)) || cp->buffer->dmabuf_buffer; 882 return (!!cp->data) ||
883 cp->buffer && ((e_comp->gl && (!cp->buffer->shm_buffer)) || cp->buffer->dmabuf_buffer);
883#endif 884#endif
884 885
885 return EINA_FALSE; 886 return EINA_FALSE;