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:
Richard Frith-MacDonald 2010-03-04 12:24:43 +00:00
parent 946ea79113
commit b730fa45c0
4 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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;

View file

@ -1637,6 +1637,7 @@ IF_NO_GC(
if (NSDecrementExtraRefCountWasZero(self))
{
[self dealloc];
self = nil;
}
[load_lock unlock];
}

View file

@ -443,6 +443,7 @@ static NSIndexPath *dummy = nil;
if (NSDecrementExtraRefCountWasZero(self))
{
[self dealloc];
self = nil;
}
[lock unlock];
}