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. // Handle object name.
StringTableEntry objectName = getName(); if (mNameSpace && mNameSpace->mClassRep == NULL)
if( objectName && objectName[ 0 ] )
mNameSpace->decRefCountToParent(); mNameSpace->decRefCountToParent();
mNameSpace = NULL; mNameSpace = NULL;