Replace lost check

This commit is contained in:
rfm 2024-11-17 16:50:16 +00:00
parent 6a723e5a87
commit 75049ec22e

View file

@ -800,7 +800,7 @@ static NSOperationQueue *mainQueue = nil;
- (void) dealloc
{
[self cancelAllOperations];
if (GS_EXISTS_INTERNAL)
if (GS_EXISTS_INTERNAL && internal->lock != nil)
{
DESTROY(internal->operations);
DESTROY(internal->starting);