project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m
changeset 6362 ceacd1b61833
parent 6337 84e7d1a5e3df
child 6624 e049b5bb0ad1
equal deleted inserted replaced
6361:bc157c3dac43 6362:ceacd1b61833
    86 -(void) applicationDidReceiveMemoryWarning:(UIApplication *)application {
    86 -(void) applicationDidReceiveMemoryWarning:(UIApplication *)application {
    87     [HWUtils releaseCache];
    87     [HWUtils releaseCache];
    88     // don't stop music if it is playing
    88     // don't stop music if it is playing
    89     if ([HWUtils isGameLaunched]) {
    89     if ([HWUtils isGameLaunched]) {
    90         [AudioManagerController releaseCache];
    90         [AudioManagerController releaseCache];
       
    91         HW_memoryWarningCallback();
    91     }
    92     }
    92     MSG_MEMCLEAN();
    93     MSG_MEMCLEAN();
    93     // don't clean mainMenuViewController here!!!
    94     // don't clean mainMenuViewController here!!!
    94 }
    95 }
    95 
    96