forked from scummvm/scummvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IOS7: Autorelease overloaded key arrays
There are memory leakages when returning to the ScummVM iOS application if it has been running in background. The reason for the memory leaks is that the system calls the keyCommands function every time the keyboard view became the first responder. Since the overloaded keys are loaded into allocated arrays each time the keyCommands function is called they are never released. Since the keyCommands is running in an autorelease block, make the allocation to autorelease. This is required since we don't utilize ARC.
- Loading branch information
1 parent
a3f1678
commit 6eac138
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters