diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2016-03-04 16:24:18 -0600 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2016-03-07 19:45:37 -0600 |
commit | 39b21a71792132e7578c5e403e725dd3221ffe80 (patch) | |
tree | 2b5f62d096e0b20bc70f4b7721375442fa35dce5 | |
parent | 114a6041666111ee9f12723a8ba22a9135f71ae1 (diff) | |
download | enlightenment-39b21a71792132e7578c5e403e725dd3221ffe80.tar.gz |
Add a NULL check in native_surface_init under wayland
-rw-r--r-- | src/bin/e_pixmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index a7f66d55a8..80d42321de 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; |