mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
#1224 memory leak when updating blocklist: autoreleased with no pool
This commit is contained in:
parent
64dad38800
commit
404dd4dee1
1 changed files with 4 additions and 0 deletions
|
@ -151,6 +151,8 @@
|
||||||
|
|
||||||
- (void) finishDownloadSuccess
|
- (void) finishDownloadSuccess
|
||||||
{
|
{
|
||||||
|
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
//change to indeterminate while processing
|
//change to indeterminate while processing
|
||||||
[fProgressBar setIndeterminate: YES];
|
[fProgressBar setIndeterminate: YES];
|
||||||
[fProgressBar startAnimation: self];
|
[fProgressBar startAnimation: self];
|
||||||
|
@ -172,6 +174,8 @@
|
||||||
|
|
||||||
[NSApp endSheet: fStatusWindow];
|
[NSApp endSheet: fStatusWindow];
|
||||||
[fStatusWindow orderOut: self];
|
[fStatusWindow orderOut: self];
|
||||||
|
|
||||||
|
[pool release];
|
||||||
[self release];
|
[self release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue