summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2012-04-26 19:03:03 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2012-04-26 19:03:03 +0000
commit3a320d154c7ccce737549c66db17f35f4c541747 (patch)
tree3ed8456ef4a357087c338cac912a5d3084e19014 /src/bin
parent7a3fe85ac328c6747c0065594d0b54a98a01d6ef (diff)
[Elm] Clean up leaks on main test code.
SVN revision: 70509
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/test.c b/src/bin/test.c
index e1902edd5..62c883497 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -729,6 +729,7 @@ elm_main(int argc, char **argv)
729{ 729{
730 Eina_Bool test_win_only = EINA_FALSE; 730 Eina_Bool test_win_only = EINA_FALSE;
731 char *autorun = NULL; 731 char *autorun = NULL;
732 struct elm_test *t = NULL;
732 733
733 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 734 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
734 735
@@ -758,6 +759,10 @@ elm_main(int argc, char **argv)
758 my_win_main(autorun, test_win_only); /* create main window */ 759 my_win_main(autorun, test_win_only); /* create main window */
759 elm_run(); /* and run the program now and handle all events etc. */ 760 elm_run(); /* and run the program now and handle all events etc. */
760 /* if the mainloop that elm_run() runs exist - we exit the app */ 761 /* if the mainloop that elm_run() runs exist - we exit the app */
762
763 EINA_LIST_FREE(tests, t)
764 free(t);
765
761 elm_shutdown(); /* clean up and shut down */ 766 elm_shutdown(); /* clean up and shut down */
762 /* exit code */ 767 /* exit code */
763 return 0; 768 return 0;