derekf pushed a commit to branch master.

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

commit c9ac2338d4a332387bd2b63496352b727505ee15
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Wed Feb 14 14:55:43 2018 -0600

    gl_drm: NULL check img
    
    If we set native surface on a new object we can get here with NULL
    engine_info from the caller.  We should still create a native surface.
---
 src/modules/evas/engines/gl_drm/evas_engine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c 
b/src/modules/evas/engines/gl_drm/evas_engine.c
index 39f5442218..9bfd562a37 100644
--- a/src/modules/evas/engines/gl_drm/evas_engine.c
+++ b/src/modules/evas/engines/gl_drm/evas_engine.c
@@ -1219,7 +1219,7 @@ eng_image_native_set(void *engine, void *image, void 
*native)
 
    evas_outbuf_use(ob);
 
-   if (img->native.data)
+   if (img && img->native.data)
      {
         if (img->native.func.free)
           img->native.func.free(img);

-- 


Reply via email to