Created windows must be destroyed at CommonQuit().

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404039
This commit is contained in:
Mike Gorchak 2009-10-10 13:21:21 +00:00
parent 5575687744
commit ae04b1afaf

View File

@ -1022,6 +1022,12 @@ CommonQuit(CommonState * state)
SDL_AudioQuit();
}
if (state->windows) {
int it;
for (it=0; it<state->num_windows; it++)
{
SDL_DestroyWindow(state->windows[it]);
}
SDL_free(state->windows);
}
SDL_free(state);