discomfitor pushed a commit to branch enlightenment-0.20.

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

commit 4e1d7e3854f5eed893bb26bb920bd9acc15d59c7
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