project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m
changeset 3668 3f7a95234d8a
parent 3663 8c28abf427f5
child 3697 d5b30d6373fc
--- a/project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m	Sat Jul 24 23:23:10 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/SDL_uikitappdelegate.m	Sun Jul 25 01:59:41 2010 +0200
@@ -27,11 +27,13 @@
 #import "../SDL_sysvideo.h"
 #import "jumphack.h"
 #import "SDL_video.h"
+#import "SDL_mixer.h"
+
+#import "PascalImports.h"
+#import "CommodityFunctions.h"
 #import "GameSetup.h"
-#import "PascalImports.h"
 #import "MainMenuViewController.h"
 #import "OverlayViewController.h"
-#import "CommodityFunctions.h"
 
 #ifdef main
 #undef main
@@ -131,7 +133,9 @@
 }
 
 -(void) applicationWillTerminate:(UIApplication *)application {
+    Mix_CloseAudio();
     SDL_SendQuit();
+    
     if (isInGame) {
         HW_terminate(YES);
         // hack to prevent automatic termination. See SDL_uikitevents.m for details