another bugfix attempt

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36156 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-02-17 06:20:22 +00:00
parent dcd39b2096
commit d0d9ba2eea
3 changed files with 30 additions and 39 deletions

View file

@ -284,9 +284,7 @@ GSAvahiClientState(AvahiClient *client, AvahiClientState state, void *userInfo)
- (void) avahiClientDealloc
{
NSRunLoop *rl = [ctx runLoop];
NSString *mode = [[ctx mode] retain];
[ctx removeFromRunLoop: rl forMode: mode];
[ctx removeFromRunLoop: [ctx runLoop] forMode: [ctx mode]];
[self freeClient];
[ctx release];
[_lock release];