зеркало из https://github.com/mozilla/gecko-dev.git
fix leak (double-retain)
This commit is contained in:
Родитель
34a57689f0
Коммит
40a7556a7a
|
@ -349,7 +349,6 @@ const int kMenuTruncationChars = 60;
|
||||||
// since it will be added to and removed from the menu repeatedly
|
// since it will be added to and removed from the menu repeatedly
|
||||||
mMenuItem = [[NSMenuItem alloc] initWithTitle:[self label] action:@selector(selectTab:) keyEquivalent:@""];
|
mMenuItem = [[NSMenuItem alloc] initWithTitle:[self label] action:@selector(selectTab:) keyEquivalent:@""];
|
||||||
[mMenuItem setTarget:self];
|
[mMenuItem setTarget:self];
|
||||||
[mMenuItem retain];
|
|
||||||
|
|
||||||
[[self tabView] setAutoresizesSubviews:YES];
|
[[self tabView] setAutoresizesSubviews:YES];
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче