src/test/SDL_test_common.c
changeset 8010 ffd65b452bd2
parent 7993 771138df6c62
child 8011 126cd9fd8b61
     1.1 --- a/src/test/SDL_test_common.c	Mon Nov 18 23:43:15 2013 +0100
     1.2 +++ b/src/test/SDL_test_common.c	Mon Nov 18 23:45:46 2013 +0100
     1.3 @@ -1424,6 +1424,14 @@
     1.4          }
     1.5          SDL_free(state->renderers);
     1.6      }
     1.7 +    if (state->targets) {
     1.8 +        for (i = 0; i < state->num_windows; ++i) {
     1.9 +            if (state->targets[i]) {
    1.10 +                SDL_DestroyTexture(state->targets[i]);
    1.11 +            }
    1.12 +        }
    1.13 +        SDL_free(state->targets);
    1.14 +    }
    1.15      if (state->flags & SDL_INIT_VIDEO) {
    1.16          SDL_VideoQuit();
    1.17      }