[Elm] Clean up leaks on main test code.

SVN revision: 70509
This commit is contained in:
Gustavo Lima Chaves 2012-04-26 19:03:03 +00:00
parent a5dded6236
commit a33051b76c
1 changed files with 5 additions and 0 deletions

View File

@ -729,6 +729,7 @@ elm_main(int argc, char **argv)
{
Eina_Bool test_win_only = EINA_FALSE;
char *autorun = NULL;
struct elm_test *t = NULL;
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
@ -758,6 +759,10 @@ elm_main(int argc, char **argv)
my_win_main(autorun, test_win_only); /* create main window */
elm_run(); /* and run the program now and handle all events etc. */
/* if the mainloop that elm_run() runs exist - we exit the app */
EINA_LIST_FREE(tests, t)
free(t);
elm_shutdown(); /* clean up and shut down */
/* exit code */
return 0;