test/testjoystick.c
changeset 9340 af5be9462bb4
parent 9338 86bc1c9a090f
child 9433 bd062398b648
     1.1 --- a/test/testjoystick.c	Wed Feb 11 01:48:52 2015 -0500
     1.2 +++ b/test/testjoystick.c	Thu Feb 12 21:40:53 2015 +0100
     1.3 @@ -176,6 +176,8 @@
     1.4  {
     1.5      SDL_Window *window = NULL;
     1.6      const char *name = NULL;
     1.7 +
     1.8 +    retval = SDL_FALSE;
     1.9      done = SDL_FALSE;
    1.10  
    1.11      /* Create a window to display joystick axis position */
    1.12 @@ -217,6 +219,7 @@
    1.13  #endif
    1.14  
    1.15      SDL_DestroyRenderer(screen);
    1.16 +    screen = NULL;
    1.17      SDL_DestroyWindow(window);
    1.18      return retval;
    1.19  }