summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelle legrand <michelle.legrand@openwide.fr>2015-02-04 12:01:36 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-11 17:03:37 +0100
commitfbb82367004db0fb095901ab450f029a7af6dede (patch)
treeba71c4c1ec06c915df1506a22e7309f4ff7346a9
parenta9035c1cf5852be7bdd36edaa9dc3bfd64c44dd0 (diff)
downloadefl-fbb82367004db0fb095901ab450f029a7af6dede.tar.gz
ecore: directly allocating and freeing Ecore_Win32_Handler variable.
There was no memory pool nor any function like that in fact. @fix
-rw-r--r--src/lib/ecore/ecore_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index de84e61a7f..98e56ff2f7 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -1150,7 +1150,7 @@ ecore_main_win32_handler_add(void *h,
EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);
if (!h || !func) return NULL;
- wh = ecore_win32_handler_calloc(1);
+ wh = calloc(1, sizeof(Ecore_Win32_Handler));
if (!wh) return NULL;
ECORE_MAGIC_SET(wh, ECORE_MAGIC_WIN32_HANDLER);
wh->h = (HANDLE)h;
@@ -1356,7 +1356,7 @@ _ecore_main_shutdown(void)
win32_handlers = (Ecore_Win32_Handler *)eina_inlist_remove(EINA_INLIST_GET(win32_handlers),
EINA_INLIST_GET(wh));
ECORE_MAGIC_SET(wh, ECORE_MAGIC_NONE);
- ecore_win32_handler_mp_free(wh);
+ free(wh);
}
win32_handlers_delete_me = EINA_FALSE;
win32_handler_current = NULL;
@@ -1659,7 +1659,7 @@ _ecore_main_win32_handlers_cleanup(void)
eina_inlist_remove(EINA_INLIST_GET(win32_handlers),
EINA_INLIST_GET(wh));
ECORE_MAGIC_SET(wh, ECORE_MAGIC_NONE);
- ecore_win32_handler_mp_free(wh);
+ free(wh);
}
}
if (!deleted_in_use) win32_handlers_delete_me = EINA_FALSE;