Clean up listener in destruction of OgrePlatform (Fixes #2145)

This commit is contained in:
scrawl 2014-11-28 22:23:42 +01:00
parent 5f5fcc2fef
commit ad38345de4

View file

@ -54,6 +54,8 @@ namespace sh
OgrePlatform::~OgrePlatform ()
{
Ogre::MaterialManager::getSingleton().removeListener(this);
delete sSerializer;
}