discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=e5e887c773ab4a324af467d384edb37a76dbd2ce

commit e5e887c773ab4a324af467d384edb37a76dbd2ce
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri Mar 4 16:24:18 2016 -0600

    Add a NULL check in native_surface_init under wayland
---
 src/bin/e_pixmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c
index a7f66d5..80d4232 100644
--- a/src/bin/e_pixmap.c
+++ b/src/bin/e_pixmap.c
@@ -580,6 +580,7 @@ e_pixmap_native_surface_init(E_Pixmap *cp, 
Evas_Native_Surface *ns)
         break;
       case E_PIXMAP_TYPE_WL:
 #ifdef HAVE_WAYLAND
+        if (!cp->buffer) return EINA_FALSE;
         ns->type = EVAS_NATIVE_SURFACE_WL;
         ns->version = EVAS_NATIVE_SURFACE_VERSION;
         ns->data.wl.legacy_buffer = cp->buffer->resource;

-- 


Reply via email to