summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_x11/evas_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_x11/evas_engine.c')
-rw-r--r--src/modules/evas/engines/gl_x11/evas_engine.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c
index eb55c7720a..b76b3d51b4 100644
--- a/src/modules/evas/engines/gl_x11/evas_engine.c
+++ b/src/modules/evas/engines/gl_x11/evas_engine.c
@@ -2384,16 +2384,12 @@ eng_image_native_set(void *engine, void *image, void *native)
2384#endif 2384#endif
2385 } 2385 }
2386 } 2386 }
2387 if ((!ns) && (!im->native.data)) return im; 2387 if (!ns)
2388 2388 {
2389 if (im->native.data) 2389 glsym_evas_gl_common_image_free(im);
2390 { 2390 return NULL;
2391 if (im->native.func.free) 2391 }
2392 im->native.func.free(im);
2393 glsym_evas_gl_common_image_native_disable(im);
2394 }
2395 2392
2396 if (!ns) return im;
2397 2393
2398 if (ns->type == EVAS_NATIVE_SURFACE_X11) 2394 if (ns->type == EVAS_NATIVE_SURFACE_X11)
2399 { 2395 {