Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Created windows must be destroyed at CommonQuit().
Browse files Browse the repository at this point in the history
  • Loading branch information
llmike committed Oct 10, 2009
1 parent 26ef91a commit 1d31a23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/common.c
Expand Up @@ -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);
Expand Down

0 comments on commit 1d31a23

Please sign in to comment.