mirror of https://github.com/encounter/SDL.git
Added missing resource release in test source.
This commit is contained in:
parent
3cba79970c
commit
48cffe33f9
|
@ -1424,6 +1424,14 @@ SDLTest_CommonQuit(SDLTest_CommonState * state)
|
||||||
}
|
}
|
||||||
SDL_free(state->renderers);
|
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) {
|
if (state->flags & SDL_INIT_VIDEO) {
|
||||||
SDL_VideoQuit();
|
SDL_VideoQuit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue