mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
zero self after dealloc if we are going to call another method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29837 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
946ea79113
commit
b730fa45c0
4 changed files with 4 additions and 0 deletions
|
@ -529,6 +529,7 @@ static IMP gs_objc_msg_forward (SEL sel)
|
|||
{
|
||||
/* We should never get here */
|
||||
[self dealloc];
|
||||
self = nil;
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"Runtime incorrectly configured to pass argframes"];
|
||||
return nil;
|
||||
|
|
|
@ -297,6 +297,7 @@ static id gs_objc_proxy_lookup(id receiver, SEL op)
|
|||
{
|
||||
/* We should never get here */
|
||||
[self dealloc];
|
||||
self = nil;
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"Runtime incorrectly configured to pass argframes"];
|
||||
return nil;
|
||||
|
|
|
@ -1637,6 +1637,7 @@ IF_NO_GC(
|
|||
if (NSDecrementExtraRefCountWasZero(self))
|
||||
{
|
||||
[self dealloc];
|
||||
self = nil;
|
||||
}
|
||||
[load_lock unlock];
|
||||
}
|
||||
|
|
|
@ -443,6 +443,7 @@ static NSIndexPath *dummy = nil;
|
|||
if (NSDecrementExtraRefCountWasZero(self))
|
||||
{
|
||||
[self dealloc];
|
||||
self = nil;
|
||||
}
|
||||
[lock unlock];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue