src/video/SDL_surface.c
branchSDL-1.3
changeset 1666 6e7ec5cb83c3
parent 1662 782fd950bd46
child 1668 4da1ee79c9af
     1.1 --- a/src/video/SDL_surface.c	Sun May 28 18:18:30 2006 +0000
     1.2 +++ b/src/video/SDL_surface.c	Sun May 28 21:56:07 2006 +0000
     1.3 @@ -896,12 +896,7 @@
     1.4  void
     1.5  SDL_FreeSurface (SDL_Surface * surface)
     1.6  {
     1.7 -    SDL_VideoDevice *_this = SDL_GetVideoDevice ();
     1.8 -
     1.9 -    /* Free anything that's not NULL, and not the screen surface */
    1.10 -    if ((surface == NULL) ||
    1.11 -        (_this &&
    1.12 -         ((surface == SDL_ShadowSurface) || (surface == SDL_VideoSurface)))) {
    1.13 +    if (surface == NULL) {
    1.14          return;
    1.15      }
    1.16      if (--surface->refcount > 0) {