зеркало из https://github.com/mozilla/gecko-dev.git
fix leaking of dl manager toolbar buttons b=283431, no review as this is obvious
This commit is contained in:
Родитель
2a00a68055
Коммит
b73e059786
|
@ -618,7 +618,7 @@ static id gSharedProgressController = nil;
|
||||||
|
|
||||||
-(NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag
|
-(NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag
|
||||||
{
|
{
|
||||||
NSToolbarItem *theItem = [[NSToolbarItem alloc] initWithItemIdentifier:itemIdentifier];
|
NSToolbarItem *theItem = [[[NSToolbarItem alloc] initWithItemIdentifier:itemIdentifier] autorelease];
|
||||||
[theItem setTarget:self];
|
[theItem setTarget:self];
|
||||||
[theItem setEnabled:NO];
|
[theItem setEnabled:NO];
|
||||||
if ([itemIdentifier isEqualToString:@"removebutton"]) {
|
if ([itemIdentifier isEqualToString:@"removebutton"]) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче