This patch will solve a SIGABRT issue caused by following step.
1. module_open
2. module_close /* does not set log domain to -1 */
3. module_open /* does not register log domain
because it is not negative value */
4. module_close /* try to free not allocated memory */
Change-Id: Ifcb6b77481d433912b2527080bbb668f7ba7b1c8
static void
module_close(Evas_Module *em EINA_UNUSED)
{
- eina_log_domain_unregister(_evas_engine_gl_tbm_log_dom);
+ if (_evas_engine_gl_tbm_log_dom >= 0)
+ {
+ eina_log_domain_unregister(_evas_engine_gl_tbm_log_dom);
+ _evas_engine_gl_tbm_log_dom = -1;
+ }
}
static Evas_Module_Api evas_modapi =