summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-08 22:47:28 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-08 22:47:28 +0000
commit9ac7594b3a6d33bcf6125230dfb43a68af68ed0d (patch)
treeb0932b967f9d54067c910a840c966182ef061c34 /legacy
parent18433ec343dc9f684c201265d4c97ae730586a92 (diff)
ephysics: fix sandbox shutdown
SVN revision: 77598
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ephysics/src/bin/ephysics_sandbox.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/legacy/ephysics/src/bin/ephysics_sandbox.c b/legacy/ephysics/src/bin/ephysics_sandbox.c
index 9cebf74..16ae348 100644
--- a/legacy/ephysics/src/bin/ephysics_sandbox.c
+++ b/legacy/ephysics/src/bin/ephysics_sandbox.c
@@ -856,7 +856,7 @@ elm_main()
856 { 856 {
857 fprintf(stderr, "Failed to init ephysics\n"); 857 fprintf(stderr, "Failed to init ephysics\n");
858 r = -1; 858 r = -1;
859 goto shutdown; 859 goto ephysics_error;
860 } 860 }
861 861
862 sandie = calloc(1, sizeof(Sandie_Data)); 862 sandie = calloc(1, sizeof(Sandie_Data));
@@ -864,7 +864,7 @@ elm_main()
864 { 864 {
865 fprintf(stderr, "Failed to alloc sandie data\n"); 865 fprintf(stderr, "Failed to alloc sandie data\n");
866 r = -1; 866 r = -1;
867 return r; 867 goto data_error;
868 } 868 }
869 869
870 elm_theme_extension_add(NULL, PACKAGE_DATA_DIR "/" SANDBOX_THEME ".edj"); 870 elm_theme_extension_add(NULL, PACKAGE_DATA_DIR "/" SANDBOX_THEME ".edj");
@@ -895,9 +895,10 @@ elm_main()
895 895
896 elm_run(); 896 elm_run();
897 897
898shutdown: 898 free(sandie);
899data_error:
899 ephysics_shutdown(); 900 ephysics_shutdown();
900 901ephysics_error:
901 elm_shutdown(); 902 elm_shutdown();
902 903
903 return r; 904 return r;