elementary_test: fix memory leak

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Jean Guyomarc'h 2015-10-15 15:02:56 +02:00 committed by Cedric BAIL
parent 469f90bc67
commit aa93516e5f
1 changed files with 4 additions and 1 deletions

View File

@ -987,7 +987,7 @@ elm_main(int argc, char **argv)
"$ elementary_test -to [TEST_NAME]\n\n"
"Examples:\n"
"$ elementary_test -to Button\n\n");
exit(EXIT_SUCCESS);
goto end;
}
autorun = argv[1];
}
@ -1013,6 +1013,9 @@ elm_main(int argc, char **argv)
EINA_LIST_FREE(tests, t)
free(t);
end:
eina_log_domain_unregister(_log_domain);
/* exit code */
return 0;
}