emotion: reorder cleanup of modules.

SVN revision: 82674
This commit is contained in:
Gustavo Sverzut Barbieri 2013-01-12 01:08:14 +00:00
parent a06b6095f6
commit ae51833bac
1 changed files with 6 additions and 3 deletions

View File

@ -146,9 +146,6 @@ emotion_modules_shutdown(void)
{
Emotion_Engine_Registry_Entry *re;
EINA_LIST_FREE(_emotion_engine_registry, re)
_emotion_engine_registry_entry_free(re);
#ifdef EMOTION_STATIC_BUILD_XINE
xine_module_shutdown();
#endif
@ -166,6 +163,12 @@ emotion_modules_shutdown(void)
_emotion_modules = NULL;
}
EINA_LIST_FREE(_emotion_engine_registry, re)
{
WRN("Engine was not unregistered: %p", re->engine);
_emotion_engine_registry_entry_free(re);
}
_emotion_modules_loaded = EINA_FALSE;
}