From 404dd4dee10047129e4a1a896cee572566526b1c Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 22 Aug 2008 22:59:20 +0000 Subject: [PATCH] #1224 memory leak when updating blocklist: autoreleased with no pool --- macosx/BlocklistDownloader.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macosx/BlocklistDownloader.m b/macosx/BlocklistDownloader.m index 65b14feee..994e72577 100644 --- a/macosx/BlocklistDownloader.m +++ b/macosx/BlocklistDownloader.m @@ -151,6 +151,8 @@ - (void) finishDownloadSuccess { + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + //change to indeterminate while processing [fProgressBar setIndeterminate: YES]; [fProgressBar startAnimation: self]; @@ -172,6 +174,8 @@ [NSApp endSheet: fStatusWindow]; [fStatusWindow orderOut: self]; + + [pool release]; [self release]; }