fix module shutdowns

This commit is contained in:
zmike 2014-02-27 13:02:56 -05:00
parent 36f38c5f90
commit a07ffba6a5
3 changed files with 6 additions and 0 deletions

View File

@ -169,6 +169,7 @@ empc_module_priority(void)
static Eina_Bool
glyr_init(void)
{
ecore_init();
E_LIST_HANDLER_APPEND(handlers, ECORE_EXE_EVENT_ERROR, exe_data, NULL);
E_LIST_HANDLER_APPEND(handlers, ECORE_EXE_EVENT_DEL, exe_del, NULL);
return EINA_TRUE;
@ -179,6 +180,7 @@ glyr_shutdown(void)
{
E_FREE_LIST(handlers, ecore_event_handler_del);
E_FREE_LIST(exes, ecore_exe_free);
ecore_shutdown();
}
EINA_MODULE_INIT(glyr_init);

View File

@ -191,6 +191,7 @@ glyr_gmpc_init(void)
{
char buf[PATH_MAX];
ecore_init();
efreet_init();
snprintf(buf, sizeof(buf), "%s/gmpc/metadata/metadata.db", efreet_cache_home_get());
esql_init();
@ -208,6 +209,7 @@ glyr_gmpc_shutdown(void)
E_FREE_LIST(handlers, ecore_event_handler_del);
esql_shutdown();
efreet_shutdown();
ecore_shutdown();
}
EINA_MODULE_INIT(glyr_gmpc_init);

View File

@ -151,6 +151,7 @@ static Eina_Bool
google_image_init(void)
{
if (!ecore_con_url_init()) return EINA_FALSE;
ecore_init();
E_LIST_HANDLER_APPEND(handlers, ECORE_CON_EVENT_URL_DATA, gdata, NULL);
E_LIST_HANDLER_APPEND(handlers, ECORE_CON_EVENT_URL_COMPLETE, gdone, NULL);
return EINA_TRUE;
@ -161,6 +162,7 @@ google_image_shutdown(void)
{
E_FREE_LIST(handlers, ecore_event_handler_del);
ecore_con_url_shutdown();
ecore_shutdown();
}
EINA_MODULE_INIT(google_image_init);