mirror of
https://github.com/godotengine/godot.git
synced 2024-11-28 15:12:33 +00:00
Merge pull request #26313 from ivanarh/master
iOS: Fixed possible crash in applicationDidReceiveMemoryWarning
This commit is contained in:
commit
ce114e35dd
@ -598,8 +598,10 @@ static int frame_count = 0;
|
||||
};
|
||||
|
||||
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
|
||||
OS::get_singleton()->get_main_loop()->notification(
|
||||
MainLoop::NOTIFICATION_OS_MEMORY_WARNING);
|
||||
if (OS::get_singleton()->get_main_loop()) {
|
||||
OS::get_singleton()->get_main_loop()->notification(
|
||||
MainLoop::NOTIFICATION_OS_MEMORY_WARNING);
|
||||
}
|
||||
};
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
|
Loading…
Reference in New Issue
Block a user