diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-01-29 19:16:02 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-01-29 19:16:02 +0000 |
| commit | 3e3a841cee601493af68af50c350c1d375701230 (patch) | |
| tree | c332c6f461a3dc0869e9c46fa462a26ea343bd56 /macosx/plugins/DFXVideo/macsrc/PluginGLView.m | |
| parent | 5c466700361ce360fd19bbc87e2cf7d90311669c (diff) | |
| download | pcsxr-3e3a841cee601493af68af50c350c1d375701230.tar.gz | |
fixed a memory leak in non-ARC code.
When we fail, autorelease, not just release self.
Change createMenuItem: to newMenuItem: this makes ARC know we are returning a non-autoreleased object.
It's bad practice to remove items from the array we're iterating over. the itemArray call might keep a local copy, but it still makes me cringe.
Create an autorelease pool around plug-in initialization code.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82589 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFXVideo/macsrc/PluginGLView.m')
0 files changed, 0 insertions, 0 deletions
