Patched up memory leak by balancing two unmatched alloc/release calls.

git-svn-id: http://macvim.googlecode.com/svn/trunk@28 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-07-29 11:58:38 +00:00
parent 5381551a05
commit 2ddd79ba97
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -505,6 +505,7 @@ static int eventButtonNumberToVimMouseButton(int buttonNumber);
NSString *name = [[NSString alloc] initWithBytes:(void*)bytes
length:len encoding:NSUTF8StringEncoding];
s = vim_strsave((char_u*)[name UTF8String]);
[name release];
}
[replyData release]; replyData = nil;
+1
View File
@@ -558,6 +558,7 @@ static NSMenuItem *findMenuItemWithTagInMenu(NSMenu *root, int tag)
[title release];
[tip release];
[icon release];
} else if (RemoveMenuItemMsgID == msgid) {
const void *bytes = [data bytes];
int tag = *((int*)bytes); bytes += sizeof(int);