mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Protect against dealloc without init
This commit is contained in:
parent
9e504da2df
commit
42fa1bf04a
2 changed files with 2 additions and 2 deletions
|
@ -799,9 +799,9 @@ static NSOperationQueue *mainQueue = nil;
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
[self cancelAllOperations];
|
||||
if (GS_EXISTS_INTERNAL && internal->lock != nil)
|
||||
{
|
||||
[self cancelAllOperations];
|
||||
DESTROY(internal->operations);
|
||||
DESTROY(internal->starting);
|
||||
DESTROY(internal->waiting);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue