* Source/GSXML.m (fatalErrorFunction): Use correct function to get

line number.
* Source/NSOperation.m (_execute): Surround with NS_DURING to free
lock on error.
This commit is contained in:
fredkiefer 2019-07-01 22:58:55 +02:00
parent 4a5db5621f
commit d774dda8a7
3 changed files with 15 additions and 1 deletions

View file

@ -1000,6 +1000,7 @@ static NSOperationQueue *mainQueue = nil;
max = maxConcurrent;
}
NS_DURING
while (NO == [self isSuspended]
&& max > internal->executing
&& [internal->waiting count] > 0)
@ -1047,6 +1048,12 @@ static NSOperationQueue *mainQueue = nil;
[internal->cond unlockWithCondition: 1];
}
}
NS_HANDLER
{
[internal->lock unlock];
[localException raise];
}
NS_ENDHANDLER
[internal->lock unlock];
}