mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
#1224 memory leak when updating blocklist: autoreleased with no pool
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user