Permalink
Browse files

SCApp - Library menu crash fix

    Don't release CFString label

Signed-off-by: Dan Stowell <danstowell@users.sourceforge.net>
  • Loading branch information...
1 parent 255b35a commit 28e4402abf9012e3fee454a74ca50c10fec3029f @gurk gurk committed with danstowell Sep 24, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 editors/scapp/GUIPrimitives.M
@@ -3686,7 +3686,6 @@ int prNewMenuItem(struct VMGlobals *g, int numArgsPushed)
}
if(!parentMenu) {
- [label release];
return errWrongType;
}
@@ -3706,7 +3705,6 @@ int prNewMenuItem(struct VMGlobals *g, int numArgsPushed)
[parentMenu insertItem:menuItem atIndex:menIndex];
[menuItem retain];
if([menuItem hasSubmenu]) { [[menuItem submenu] release]; } // this has been retained
- [label release];
return errNone;
}

0 comments on commit 28e4402

Please sign in to comment.