From 8bc8445051593dde109e60c78762ef0c9543715f Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Tue, 12 Dec 2023 15:17:45 +0900 Subject: [PATCH] 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 --- src/lib/elementary/elm_config.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.7.4