From ae04b1afaf127825588a06bae71d594f5509b6d2 Mon Sep 17 00:00:00 2001 From: Mike Gorchak Date: Sat, 10 Oct 2009 13:21:21 +0000 Subject: [PATCH] Created windows must be destroyed at CommonQuit(). --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404039 --- test/common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/common.c b/test/common.c index 376a17d47..b770b391d 100644 --- a/test/common.c +++ b/test/common.c @@ -1022,6 +1022,12 @@ CommonQuit(CommonState * state) SDL_AudioQuit(); } if (state->windows) { + int it; + + for (it=0; itnum_windows; it++) + { + SDL_DestroyWindow(state->windows[it]); + } SDL_free(state->windows); } SDL_free(state);