cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=abb03f76c4a3e3f697ae1813b784ff8fcf1f66a7
commit abb03f76c4a3e3f697ae1813b784ff8fcf1f66a7 Author: kabeer khan <[email protected]> Date: Mon Sep 22 14:17:26 2014 +0200 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 <[email protected]> Reviewers: cedric, raster Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1446 Signed-off-by: Cedric BAIL <[email protected]> --- src/benchmarks/eina/eina_bench.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/benchmarks/eina/eina_bench.c b/src/benchmarks/eina/eina_bench.c index a226fd9..1f7d18c 100644 --- a/src/benchmarks/eina/eina_bench.c +++ b/src/benchmarks/eina/eina_bench.c @@ -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(); } --
