mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user