mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Remove unnecessary retain/release
This commit is contained in:
parent
98dfa140ec
commit
21839365a9
1 changed files with 3 additions and 5 deletions
|
@ -503,12 +503,11 @@ static NSArray *empty = nil;
|
|||
@end
|
||||
|
||||
@implementation NSOperation (Private)
|
||||
/* NB code calling this method must ensure that the receiver is retained
|
||||
* until after the method returns.
|
||||
*/
|
||||
- (void) _finish
|
||||
{
|
||||
/* retain while finishing so that we don't get deallocated when our
|
||||
* queue removes and releases us.
|
||||
*/
|
||||
RETAIN(self);
|
||||
[internal->lock lock];
|
||||
if (NO == internal->finished)
|
||||
{
|
||||
|
@ -533,7 +532,6 @@ static NSArray *empty = nil;
|
|||
}
|
||||
}
|
||||
[internal->lock unlock];
|
||||
RELEASE(self);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue