mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Bugfix for releasing uninitialised instance.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24463 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fe0f32993f
commit
edcf9400aa
2 changed files with 5 additions and 1 deletions
|
@ -1701,7 +1701,10 @@ typedef struct {
|
|||
M_LOCK(messagePortLock);
|
||||
if (NSDecrementExtraRefCountWasZero(self))
|
||||
{
|
||||
NSMapRemove(messagePortMap, (void*)name);
|
||||
if (_internal != 0)
|
||||
{
|
||||
NSMapRemove(messagePortMap, (void*)name);
|
||||
}
|
||||
M_UNLOCK(messagePortLock);
|
||||
[self dealloc];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue