diff -r cbc80c22691c -r b831679e9467 project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m --- a/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m Tue Oct 25 22:14:55 2011 +0200 +++ b/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m Tue Oct 25 22:51:10 2011 +0200 @@ -90,11 +90,12 @@ } -(void) applicationDidReceiveMemoryWarning:(UIApplication *)application { - // don't stop music when it is playing + [HWUtils releaseCache]; + // don't stop music if it is playing if (self.isInGame) { - [AudioManagerController cleanupMemory]; - MSG_MEMCLEAN(); + [AudioManagerController releaseCache]; } + MSG_MEMCLEAN(); // don't clean mainMenuViewController here!!! }