src/test/SDL_test_common.c
changeset 8010 ffd65b452bd2
parent 7993 771138df6c62
child 8011 126cd9fd8b61
equal deleted inserted replaced
8009:c185ac7fb771 8010:ffd65b452bd2
  1422                 SDL_DestroyRenderer(state->renderers[i]);
  1422                 SDL_DestroyRenderer(state->renderers[i]);
  1423             }
  1423             }
  1424         }
  1424         }
  1425         SDL_free(state->renderers);
  1425         SDL_free(state->renderers);
  1426     }
  1426     }
       
  1427     if (state->targets) {
       
  1428         for (i = 0; i < state->num_windows; ++i) {
       
  1429             if (state->targets[i]) {
       
  1430                 SDL_DestroyTexture(state->targets[i]);
       
  1431             }
       
  1432         }
       
  1433         SDL_free(state->targets);
       
  1434     }
  1427     if (state->flags & SDL_INIT_VIDEO) {
  1435     if (state->flags & SDL_INIT_VIDEO) {
  1428         SDL_VideoQuit();
  1436         SDL_VideoQuit();
  1429     }
  1437     }
  1430     if (state->flags & SDL_INIT_AUDIO) {
  1438     if (state->flags & SDL_INIT_AUDIO) {
  1431         SDL_AudioQuit();
  1439         SDL_AudioQuit();