summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_core.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c b/src/modules/evas/engines/gl_common/evas_gl_core.c
index 96d0807c39..786c54c825 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -88,7 +88,13 @@ error:
88static void 88static void
89_internal_resources_destroy(void *eng_data, EVGL_Resource *rsc) 89_internal_resources_destroy(void *eng_data, EVGL_Resource *rsc)
90{ 90{
91 if ((!eng_data) || (!rsc)) return; 91 if (!rsc) return;
92
93 if (!eng_data)
94 {
95 free(rsc);
96 return;
97 }
92 98
93 if (rsc->context) 99 if (rsc->context)
94 evgl_engine->funcs->context_destroy(eng_data, rsc->context); 100 evgl_engine->funcs->context_destroy(eng_data, rsc->context);