Skip to:
In function SampleBrowser::shutdown (which overrides function SampleContext::shutdown),
It has this (at the bottom):
mWindow = 0;
SampleContext::shutdown();
For this, function SampleContext::shutdown can no longer correctly remove the handler when it calls this:
Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); /* mWindow - it is NULL! =o */
FIX:
In function SampleBrowser::shutdown:/* mWindow = 0; / / Don't nullify it here! >_< */
Then, in function SampleContext::shutdown:Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this), mWindow = 0; /* Instead, nullify it here! XD */
Have a nice day! =D
Fixed in 1.9.0 with commit https://bitbucket.org/sinbad/ogre/commits/108ab0bcc69603dba32c0ffd4bbbc39051f421c9
Needs to be merge into 1.10.0
In function SampleBrowser::shutdown (which overrides function SampleContext::shutdown),
It has this (at the bottom):
mWindow = 0;
SampleContext::shutdown();
For this, function SampleContext::shutdown can no longer correctly remove the handler when it calls this:
Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); /* mWindow - it is NULL! =o */
FIX:
In function SampleBrowser::shutdown:
/* mWindow = 0; / / Don't nullify it here! >_< */
Then, in function SampleContext::shutdown:
Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this), mWindow = 0; /* Instead, nullify it here! XD */
Have a nice day! =D