evas/gl - +null & less code

This fixes the incorrect operations when evas gl is re-initialized in one same process



SVN revision: 74339
This commit is contained in:
ChunEon Park 2012-07-24 03:57:27 +00:00
parent 29452cf797
commit 843255a175
2 changed files with 9 additions and 8 deletions

View File

@ -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.

View File

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