mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
|
@ -856,9 +856,9 @@ static NSLock *cached_proxies_gate = nil;
|
|||
{
|
||||
if (debug_connection)
|
||||
NSLog(@"deallocating %@", self);
|
||||
[self finalize];
|
||||
if (GS_EXISTS_INTERNAL)
|
||||
{
|
||||
[self finalize];
|
||||
GS_DESTROY_INTERNAL(NSConnection);
|
||||
}
|
||||
[super dealloc];
|
||||
|
|
|
@ -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…
Reference in a new issue