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:
Fred Kiefer 2002-09-06 23:35:29 +00:00
parent 6539cba2c9
commit 24c9cc59c0

View file

@ -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);
}
/*