1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

clean up our cursors during destruction

This commit is contained in:
Jordan Milne 2013-01-11 10:09:26 -04:00
parent eeacb04fe2
commit 651a654985

View File

@ -37,6 +37,17 @@ namespace SFO
if(mSDLWindow != NULL)
SDL_DestroyWindow(mSDLWindow);
mSDLWindow = NULL;
CursorMap::const_iterator curs_iter = mCursorMap.begin();
while(curs_iter != mCursorMap.end())
{
SDL_FreeCursor(curs_iter->second);
++curs_iter;
}
mCursorMap.clear();
SDL_StopTextInput();
SDL_Quit();
}