Merge pull request #1036 from Areloch/Issue_748

PR for issue #748
This commit is contained in:
Daniel Buckmaster 2014-12-17 21:02:20 +11:00
commit 63b35581c4

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;