src/video/SDL_video.c
changeset 7720 f9a649383362
parent 7719 31b5f9ff36ca
child 7721 bdf8c2c84e14
     1.1 --- a/src/video/SDL_video.c	Thu Aug 29 08:29:21 2013 -0700
     1.2 +++ b/src/video/SDL_video.c	Thu Aug 29 08:29:51 2013 -0700
     1.3 @@ -1432,9 +1432,7 @@
     1.4          return;
     1.5      }
     1.6  
     1.7 -    if (window->icon) {
     1.8 -        SDL_FreeSurface(window->icon);
     1.9 -    }
    1.10 +    SDL_FreeSurface(window->icon);
    1.11  
    1.12      /* Convert the icon into ARGB8888 */
    1.13      window->icon = SDL_ConvertSurfaceFormat(icon, SDL_PIXELFORMAT_ARGB8888, 0);
    1.14 @@ -2183,9 +2181,7 @@
    1.15  
    1.16      /* Free memory associated with the window */
    1.17      SDL_free(window->title);
    1.18 -    if (window->icon) {
    1.19 -        SDL_FreeSurface(window->icon);
    1.20 -    }
    1.21 +    SDL_FreeSurface(window->icon);
    1.22      SDL_free(window->gamma);
    1.23      while (window->data) {
    1.24          SDL_WindowUserData *data = window->data;