Page 1 of 1

cleanupSample() is never called

Posted: Wed May 03, 2006 23:27
by Rackle
I had placed code there to save the positions of my windows/dialogs but it was never called. I "fixed" it by adding the call to cleanupSample() within CEGuiSample::cleanup():
void CEGuiSample::cleanup()
{
cleanupSample();

if (d_sampleApp)
{
d_sampleApp->cleanup();
delete d_sampleApp;
d_sampleApp = 0;
}

if (d_rendererSelector)
{
delete d_rendererSelector;
d_rendererSelector = 0;
}

}