From e5e887c773ab4a324af467d384edb37a76dbd2ce Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 4 Mar 2016 16:24:18 -0600 Subject: [PATCH] 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 a7f66d55a..80d42321d 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;