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.
This commit is contained in:
Derek Foreman 2018-02-14 14:55:43 -06:00
parent 855c1886b6
commit c9ac2338d4
1 changed files with 1 additions and 1 deletions

View File

@ -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);