mirror of
https://github.com/joel16/SDL2.git
synced 2024-12-13 14:07:38 +00:00
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
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user