ephysics: fix sandbox shutdown

SVN revision: 77598
This commit is contained in:
Bruno Dilly 2012-10-08 22:47:28 +00:00
parent 18433ec343
commit 9ac7594b3a
1 changed files with 5 additions and 4 deletions

View File

@ -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;