Committed by
Joseph Heenan
Release request redirected block. (Otherwise it will leak.)
Showing
1 changed file
with
5 additions
and
0 deletions
| @@ -460,6 +460,11 @@ static NSOperationQueue *sharedQueue = nil; | @@ -460,6 +460,11 @@ static NSOperationQueue *sharedQueue = nil; | ||
| 460 | [authenticationNeededBlock release]; | 460 | [authenticationNeededBlock release]; |
| 461 | authenticationNeededBlock = nil; | 461 | authenticationNeededBlock = nil; |
| 462 | } | 462 | } |
| 463 | + if (requestRedirectedBlock) { | ||
| 464 | + [blocks addObject:requestRedirectedBlock]; | ||
| 465 | + [requestRedirectedBlock release]; | ||
| 466 | + requestRedirectedBlock = nil; | ||
| 467 | + } | ||
| 463 | [[self class] performSelectorOnMainThread:@selector(releaseBlocks:) withObject:blocks waitUntilDone:[NSThread isMainThread]]; | 468 | [[self class] performSelectorOnMainThread:@selector(releaseBlocks:) withObject:blocks waitUntilDone:[NSThread isMainThread]]; |
| 464 | } | 469 | } |
| 465 | // Always called on main thread | 470 | // Always called on main thread |
-
Please register or login to post a comment