eina: Remove TODO, add code to delete the modules array

Summary:
As mentioned in TODO in eina_bench.c I added the code to loop through _modules array and delete each item.:

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1446

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
kabeer khan 2014-09-22 14:17:26 +02:00 committed by Cedric BAIL
parent 3ad485b8e0
commit abb03f76c4
1 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,12 @@ static void _mempool_init(void)
static void _mempool_shutdown(void)
{
eina_module_list_free(_modules);
/* TODO delete the list */
if (_modules)
{
EINA_ARRAY_ITER_NEXT(_modules, i, module, it)
free(module);
eina_array_free(_modules);
}
eina_shutdown();
}