Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better fix for static analysis issue in SDL_DestroyRenderer().
Follow up fix for Bugzilla #3544.
  • Loading branch information
icculus committed Jan 7, 2017
1 parent 5fcd454 commit c1ac4c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/render/SDL_render.c
Expand Up @@ -1938,7 +1938,9 @@ SDL_DestroyRenderer(SDL_Renderer * renderer)

/* Free existing textures for this renderer */
while (renderer->textures) {
SDL_Texture *tex = renderer->textures;
SDL_DestroyTexture(renderer->textures);
SDL_assert(tex != renderer->textures); /* satisfy static analysis. */
}

if (renderer->window) {
Expand Down

0 comments on commit c1ac4c6

Please sign in to comment.