mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Release the invocation in [detachDrawingThread:toTarget:withObject:]
not in the helper method. (Patch by David Ayers <d.ayers@inode.at>). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14409 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6539cba2c9
commit
24c9cc59c0
1 changed files with 3 additions and 3 deletions
|
@ -471,12 +471,11 @@ static NSCell* tileCell = nil;
|
|||
}
|
||||
|
||||
// Helper method
|
||||
+ (void) invokeWithAutoreleasePool: (NSInvocation*) inv
|
||||
+ (void) _invokeWithAutoreleasePool: (NSInvocation*) inv
|
||||
{
|
||||
CREATE_AUTORELEASE_POOL(pool);
|
||||
|
||||
[inv invoke];
|
||||
RELEASE(inv);
|
||||
RELEASE(pool);
|
||||
}
|
||||
|
||||
|
@ -489,9 +488,10 @@ static NSCell* tileCell = nil;
|
|||
// This uses a GNUstep extension on NSInvocation
|
||||
inv = [[NSInvocation alloc] initWithTarget: target
|
||||
selector: selector, argument];
|
||||
[NSThread detachNewThreadSelector: @selector(invokeWithAutoreleasePool:)
|
||||
[NSThread detachNewThreadSelector: @selector(_invokeWithAutoreleasePool:)
|
||||
toTarget: self
|
||||
withObject: inv];
|
||||
RELEASE(inv);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue