Created windows must be destroyed at CommonQuit().
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404039
This commit is contained in:
parent
5575687744
commit
ae04b1afaf
1 changed files with 6 additions and 0 deletions
|
@ -1022,6 +1022,12 @@ CommonQuit(CommonState * state)
|
||||||
SDL_AudioQuit();
|
SDL_AudioQuit();
|
||||||
}
|
}
|
||||||
if (state->windows) {
|
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->windows);
|
||||||
}
|
}
|
||||||
SDL_free(state);
|
SDL_free(state);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue