Skip to content

Commit

Permalink
Added missing resource release in test source.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Nov 18, 2013
1 parent 3cba799 commit 48cffe3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/SDL_test_common.c
Expand Up @@ -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();
}
Expand Down

0 comments on commit 48cffe3

Please sign in to comment.