project_files/HedgewarsMobile/Classes/AudioManagerController.m
changeset 6017 24631fd2fb9e
parent 6006 a211dcca5016
child 6208 b831679e9467
--- a/project_files/HedgewarsMobile/Classes/AudioManagerController.m	Sat Sep 24 14:48:23 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/AudioManagerController.m	Sat Sep 24 21:54:11 2011 +0200
@@ -108,19 +108,13 @@
 
 #pragma mark -
 #pragma mark memory management
-+(void) didReceiveMemoryWarning {
++(void) cleanupMemory {
     [backgroundMusic stop];
-    backgroundMusic = nil;
-    clickSound = -1;
-    backSound = -1;
-}
-
-+(void) dealloc {
-    releaseAndNil(backgroundMusic);
+    [backgroundMusic release], backgroundMusic = nil;
     AudioServicesDisposeSystemSoundID(clickSound), clickSound = -1;
     AudioServicesDisposeSystemSoundID(backSound), backSound = -1;
     AudioServicesDisposeSystemSoundID(selSound), selSound = -1;
-    [super dealloc];
+    MSG_MEMCLEAN();
 }
 
 @end