Fix: Null'ed pointer usage, possible access violation.

This fixes issue #700
This commit is contained in:
bank 2014-06-18 11:33:38 +04:00
parent feec36731e
commit e442b87c0c
3 changed files with 3 additions and 14 deletions

View file

@ -415,11 +415,7 @@ void Splash::onRemove()
ringList.clear();
if( getSceneManager() )
getSceneManager()->removeObjectFromScene(this);
if( getContainer() )
getContainer()->removeObject(this);
removeFromScene();
Parent::onRemove();
}