comparison test/common.c @ 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 c18c03927a77
children 5dc34052ee6c
comparison
equal deleted inserted replaced
3369:71bb88152e3f 3370:3e0f51e60fa2
1020 } 1020 }
1021 if (state->flags & SDL_INIT_AUDIO) { 1021 if (state->flags & SDL_INIT_AUDIO) {
1022 SDL_AudioQuit(); 1022 SDL_AudioQuit();
1023 } 1023 }
1024 if (state->windows) { 1024 if (state->windows) {
1025 int it;
1026
1027 for (it=0; it<state->num_windows; it++)
1028 {
1029 SDL_DestroyWindow(state->windows[it]);
1030 }
1025 SDL_free(state->windows); 1031 SDL_free(state->windows);
1026 } 1032 }
1027 SDL_free(state); 1033 SDL_free(state);
1028 } 1034 }