aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks
diff options
context:
space:
mode:
authorkabeer khan <kabeer.khan@samsung.com>2014-09-22 14:17:26 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-09-22 14:59:27 +0200
commitabb03f76c4a3e3f697ae1813b784ff8fcf1f66a7 (patch)
tree2298d1ade5d4f4b8fd29577b677360796f6e3505 /src/benchmarks
parenteina: add test cases for Eina_Trash (diff)
downloadefl-abb03f76c4a3e3f697ae1813b784ff8fcf1f66a7.tar.gz
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>
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eina/eina_bench.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/benchmarks/eina/eina_bench.c b/src/benchmarks/eina/eina_bench.c
index a226fd9892..1f7d18cec4 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();
}