PR for issue #748

This commit is contained in:
Areloch 2014-12-11 22:17:55 -06:00
parent 27252b0864
commit 8518c85e80

View file

@ -1599,8 +1599,7 @@ void SimObject::unlinkNamespaces()
// Handle object name.
StringTableEntry objectName = getName();
if( objectName && objectName[ 0 ] )
if (mNameSpace && mNameSpace->mClassRep == NULL)
mNameSpace->decRefCountToParent();
mNameSpace = NULL;