From 4821c3e0349d98bc1a32f5a426225cbef314dbe7 Mon Sep 17 00:00:00 2001 From: hermet Date: Tue, 24 Jul 2012 03:57:27 +0000 Subject: [PATCH] evas/gl - +null & less code This fixes the incorrect operations when evas gl is re-initialized in one same process git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@74339 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- ChangeLog | 5 +++++ src/modules/engines/gl_x11/evas_engine.c | 12 ++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index ac59b51..0a0a241 100644 --- a/ChangeLog +++ b/ChangeLog @@ -908,3 +908,8 @@ 2012-07-24 Ingvaldur Sigurjonsson * Fix typoe in docs + +2012-07-24 Hermet (ChunEon Park) + + * Fixed evas_gl resource list have cleared properly when it is released + so it would be no problem when it is reinitialized in one same process. diff --git a/src/modules/engines/gl_x11/evas_engine.c b/src/modules/engines/gl_x11/evas_engine.c index d227361..78cc98c 100644 --- a/src/modules/engines/gl_x11/evas_engine.c +++ b/src/modules/engines/gl_x11/evas_engine.c @@ -900,11 +900,6 @@ _destroy_internal_glue_resources(void *data) eglDestroyContext(re->win->egl_disp, rsc->context); free(rsc); } - eina_list_free(resource_list); - LKU(resource_lock); - - // Destroy TLS - eina_tls_free(resource_key); #else // GLX // Delete the Resources @@ -917,19 +912,20 @@ _destroy_internal_glue_resources(void *data) free(rsc); } } +#endif eina_list_free(resource_list); + resource_list = NULL; LKU(resource_lock); // Destroy TLS eina_tls_free(resource_key); -#endif // Free the extension strings if (_ext_initted) { - if (_gl_ext_string) + if (_gl_ext_string) free(_gl_ext_string); - if (_evasgl_ext_string) + if (_evasgl_ext_string) free(_evasgl_ext_string); _gl_ext_string = NULL; -- 2.7.4