From 9ac7594b3a6d33bcf6125230dfb43a68af68ed0d Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Mon, 8 Oct 2012 22:47:28 +0000 Subject: [PATCH] ephysics: fix sandbox shutdown SVN revision: 77598 --- legacy/ephysics/src/bin/ephysics_sandbox.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/legacy/ephysics/src/bin/ephysics_sandbox.c b/legacy/ephysics/src/bin/ephysics_sandbox.c index 9cebf74861..16ae34855e 100644 --- a/legacy/ephysics/src/bin/ephysics_sandbox.c +++ b/legacy/ephysics/src/bin/ephysics_sandbox.c @@ -856,7 +856,7 @@ elm_main() { fprintf(stderr, "Failed to init ephysics\n"); r = -1; - goto shutdown; + goto ephysics_error; } sandie = calloc(1, sizeof(Sandie_Data)); @@ -864,7 +864,7 @@ elm_main() { fprintf(stderr, "Failed to alloc sandie data\n"); r = -1; - return r; + goto data_error; } elm_theme_extension_add(NULL, PACKAGE_DATA_DIR "/" SANDBOX_THEME ".edj"); @@ -895,9 +895,10 @@ elm_main() elm_run(); -shutdown: + free(sandie); +data_error: ephysics_shutdown(); - +ephysics_error: elm_shutdown(); return r;