# HG changeset patch # User Matti Hamalainen # Date 1528741811 -10800 # Node ID b940b72d1b4d26e8857f59cae74a28afba62e1c2 # Parent c944844e437fa982b8b9a72c4e9f2e251919f758 Cleanup. diff -r c944844e437f -r b940b72d1b4d tools/64vw.c --- a/tools/64vw.c Mon Jun 11 19:52:10 2018 +0300 +++ b/tools/64vw.c Mon Jun 11 21:30:11 2018 +0300 @@ -531,14 +531,10 @@ // Cleanup dmFree(optFilenames); - if (window != NULL) - SDL_DestroyWindow(window); + SDL_DestroyWindow(window); + SDL_DestroyTexture(texture); + SDL_FreeSurface(surf); - if (texture != NULL) - SDL_DestroyTexture(texture); - - if (surf != NULL) - SDL_FreeSurface(surf); if (initSDL) SDL_Quit();