From ad38345de4aa9cf82e0042fafb93d63582429854 Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 28 Nov 2014 22:23:42 +0100 Subject: [PATCH] Clean up listener in destruction of OgrePlatform (Fixes #2145) --- extern/shiny/Platforms/Ogre/OgrePlatform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extern/shiny/Platforms/Ogre/OgrePlatform.cpp b/extern/shiny/Platforms/Ogre/OgrePlatform.cpp index eab8f93e2..aa01c8ba1 100644 --- a/extern/shiny/Platforms/Ogre/OgrePlatform.cpp +++ b/extern/shiny/Platforms/Ogre/OgrePlatform.cpp @@ -54,6 +54,8 @@ namespace sh OgrePlatform::~OgrePlatform () { + Ogre::MaterialManager::getSingleton().removeListener(this); + delete sSerializer; }