test/testgamecontroller.c
changeset 9340 af5be9462bb4
parent 9290 fe975b2313fa
child 9607 7746ab058d12
     1.1 --- a/test/testgamecontroller.c	Wed Feb 11 01:48:52 2015 -0500
     1.2 +++ b/test/testgamecontroller.c	Thu Feb 12 21:40:53 2015 +0100
     1.3 @@ -163,6 +163,10 @@
     1.4      const size_t titlelen = SDL_strlen(basetitle) + SDL_strlen(name) + 1;
     1.5      char *title = (char *)SDL_malloc(titlelen);
     1.6      SDL_Window *window = NULL;
     1.7 +
     1.8 +    retval = SDL_FALSE;
     1.9 +    done = SDL_FALSE;
    1.10 +
    1.11      if (title) {
    1.12          SDL_snprintf(title, titlelen, "%s%s", basetitle, name);
    1.13      }
    1.14 @@ -219,6 +223,10 @@
    1.15  #endif
    1.16  
    1.17      SDL_DestroyRenderer(screen);
    1.18 +    screen = NULL;
    1.19 +    background = NULL;
    1.20 +    button = NULL;
    1.21 +    axis = NULL;
    1.22      SDL_DestroyWindow(window);
    1.23      return retval;
    1.24  }