From b73e059786fc53e2beb73e07010444753bf58285 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Fri, 25 Feb 2005 03:34:39 +0000 Subject: [PATCH] fix leaking of dl manager toolbar buttons b=283431, no review as this is obvious --- camino/src/download/ProgressDlgController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camino/src/download/ProgressDlgController.mm b/camino/src/download/ProgressDlgController.mm index 582e4ecb3c3a..cea8d210a5cb 100644 --- a/camino/src/download/ProgressDlgController.mm +++ b/camino/src/download/ProgressDlgController.mm @@ -618,7 +618,7 @@ static id gSharedProgressController = nil; -(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 setEnabled:NO]; if ([itemIdentifier isEqualToString:@"removebutton"]) {