Skip to content
Permalink
Browse files

Added missing resource release in test source.

  • Loading branch information
philippwiesemann committed Nov 18, 2013
1 parent 3cba799 commit 48cffe33f92f2e8a902f71cc7b5ca25bb1053d27
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/test/SDL_test_common.c
@@ -1424,6 +1424,14 @@ SDLTest_CommonQuit(SDLTest_CommonState * state)
}
SDL_free(state->renderers);
}
if (state->targets) {
for (i = 0; i < state->num_windows; ++i) {
if (state->targets[i]) {
SDL_DestroyTexture(state->targets[i]);
}
}
SDL_free(state->targets);
}
if (state->flags & SDL_INIT_VIDEO) {
SDL_VideoQuit();
}

0 comments on commit 48cffe3

Please sign in to comment.