Protect againse dealloc of uninitialised connection

This commit is contained in:
rfm 2024-11-17 20:55:27 +00:00
parent 67a42b38ce
commit 2887275a3a

View file

@ -856,9 +856,9 @@ static NSLock *cached_proxies_gate = nil;
{
if (debug_connection)
NSLog(@"deallocating %@", self);
[self finalize];
if (internal != nil)
if (GS_EXISTS_INTERNAL)
{
[self finalize];
GS_DESTROY_INTERNAL(NSConnection);
}
[super dealloc];