From: Hosang Kim Date: Tue, 12 Dec 2023 06:17:45 +0000 (+0900) Subject: elm_config: fix abort on eina magic fail X-Git-Tag: accepted/tizen/unified/20231213.162118^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F302693%2F1;p=platform%2Fupstream%2Fefl.git elm_config: fix abort on eina magic fail Sometimes application calls elm_init/elm_shutdown twice. _elm_gl_preference is not freed when elm_shutdown is called. But eina is shutdowned, so eina magic is invalid. Change-Id: I2f6b294256547b3112b3b793a913f1e28d0e83e6 --- diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c index adcbe3f..c13b8f4 100644 --- a/src/lib/elementary/elm_config.c +++ b/src/lib/elementary/elm_config.c @@ -5552,6 +5552,7 @@ _elm_config_shutdown(void) ELM_SAFE_FREE(_elm_config, _config_free); ELM_SAFE_FREE(_elm_preferred_engine, eina_stringshare_del); ELM_SAFE_FREE(_elm_accel_preference, eina_stringshare_del); + ELM_SAFE_FREE(_elm_gl_preference, eina_stringshare_del); ELM_SAFE_FREE(_elm_cache_flush_poller, ecore_poller_del); ELM_SAFE_FREE(_elm_profile, free); ELM_SAFE_FREE(_getenv_once_envs, eina_hash_free);