mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 13:54:27 +00:00
fix leak (double-retain)
This commit is contained in:
parent
34a57689f0
commit
40a7556a7a
@ -349,7 +349,6 @@ const int kMenuTruncationChars = 60;
|
||||
// since it will be added to and removed from the menu repeatedly
|
||||
mMenuItem = [[NSMenuItem alloc] initWithTitle:[self label] action:@selector(selectTab:) keyEquivalent:@""];
|
||||
[mMenuItem setTarget:self];
|
||||
[mMenuItem retain];
|
||||
|
||||
[[self tabView] setAutoresizesSubviews:YES];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user