changeset 1761:b940b72d1b4d

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 11 Jun 2018 21:30:11 +0300
parents c944844e437f
children b69f3d97db9e
files tools/64vw.c
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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();