Mercurial > hg > dmlib
diff tools/64vw.c @ 2089:dcca36701cdd
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 19 Feb 2019 12:18:12 +0200 |
parents | 1ad8382e3670 |
children | 4276b8c0fef0 |
line wrap: on
line diff
--- a/tools/64vw.c Tue Feb 19 09:33:29 2019 +0200 +++ b/tools/64vw.c Tue Feb 19 12:18:12 2019 +0200 @@ -544,17 +544,10 @@ // Cleanup dmFree(optFilenames); - if (texture != NULL) - SDL_DestroyTexture(texture); - - if (renderer != NULL) - SDL_DestroyRenderer(renderer); - - if (window != NULL) - SDL_DestroyWindow(window); - - if (surf != NULL) - SDL_FreeSurface(surf); + SDL_DestroyTexture(texture); + SDL_DestroyRenderer(renderer); + SDL_DestroyWindow(window); + SDL_FreeSurface(surf); if (initSDL) SDL_Quit();