src/file/SDL_rwops.c
changeset 7719 31b5f9ff36ca
parent 7262 3c5f6170df8e
child 7828 1451063c8ecd
     1.1 --- a/src/file/SDL_rwops.c	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/src/file/SDL_rwops.c	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -275,10 +275,8 @@
     1.4              CloseHandle(context->hidden.windowsio.h);
     1.5              context->hidden.windowsio.h = INVALID_HANDLE_VALUE;   /* to be sure */
     1.6          }
     1.7 -        if (context->hidden.windowsio.buffer.data) {
     1.8 -            SDL_free(context->hidden.windowsio.buffer.data);
     1.9 -            context->hidden.windowsio.buffer.data = NULL;
    1.10 -        }
    1.11 +        SDL_free(context->hidden.windowsio.buffer.data);
    1.12 +        context->hidden.windowsio.buffer.data = NULL;
    1.13          SDL_FreeRW(context);
    1.14      }
    1.15      return (0);