project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m
changeset 6869 a187c280dd3d
parent 6832 fae8fd118da9
child 6908 896ed2afcfb8
equal deleted inserted replaced
6868:f31b5213b163 6869:a187c280dd3d
    66 
    66 
    67 -(void) applicationDidReceiveMemoryWarning:(UIApplication *)application {
    67 -(void) applicationDidReceiveMemoryWarning:(UIApplication *)application {
    68     [HWUtils releaseCache];
    68     [HWUtils releaseCache];
    69     // don't stop music if it is playing
    69     // don't stop music if it is playing
    70     if ([HWUtils isGameLaunched]) {
    70     if ([HWUtils isGameLaunched]) {
    71         [AudioManagerController releaseCache];
    71         [[AudioManagerController mainManager] didReceiveMemoryWarning];
    72         HW_memoryWarningCallback();
    72         HW_memoryWarningCallback();
    73     }
    73     }
    74     MSG_MEMCLEAN();
    74     MSG_MEMCLEAN();
    75     // don't clean mainMenuViewController here!!!
    75     // don't clean mainMenuViewController here!!!
    76 }
    76 }