Commit ae04b1af authored by Mike Gorchak's avatar Mike Gorchak

Created windows must be destroyed at CommonQuit().

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404039
parent 55756877
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment