Mercurial > sdl-ios-xcode
changeset 3370:3e0f51e60fa2
Created windows must be destroyed at CommonQuit().
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Sat, 10 Oct 2009 13:21:21 +0000 |
parents | 71bb88152e3f |
children | 438ba87e9578 |
files | test/common.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/common.c Sat Oct 10 10:02:17 2009 +0000 +++ b/test/common.c Sat Oct 10 13:21:21 2009 +0000 @@ -1022,6 +1022,12 @@ 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);