In case of the ref count bigger than 1.
That means the eo_theme ref count is 2.
In that case we need to call efl_unref when theme freed.
other case we can delete eo_theme.
@fix
https://phab.enlightenment.org/D8714
e25f00c2d5d98854b1ddab5d9d3b34ce63766db3
Change-Id: Ifcbcd40ece56f8b466fbb3e00b1344a000f55ca8
/* Destructs theme object and theme is deallocated in
* _elm_theme_free_internal() in theme object desctructor.
*/
- efl_unref(th->eo_theme);
+ if (efl_ref_count(th->eo_theme) > 1)
+ efl_unref(th->eo_theme);
+ else
+ efl_del(th->eo_theme);
}
static void