Fix memory leak in iOS AppDelegate.