Memory leak fix for DirectX software surfaces
authorSam Lantinga <slouken@libsdl.org>
Wed, 03 Jul 2002 04:54:55 +0000
changeset 422b1b9ee41be70
parent 421 195dd37b3d86
child 423 d1565c52ded5
Memory leak fix for DirectX software surfaces
src/video/SDL_surface.c
     1.1 --- a/src/video/SDL_surface.c	Tue Jul 02 04:07:01 2002 +0000
     1.2 +++ b/src/video/SDL_surface.c	Wed Jul 03 04:54:55 2002 +0000
     1.3 @@ -812,7 +812,7 @@
     1.4  		SDL_FreeBlitMap(surface->map);
     1.5  		surface->map = NULL;
     1.6  	}
     1.7 -	if ( (surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE ) {
     1.8 +	if ( surface->hwdata ) {
     1.9  		SDL_VideoDevice *video = current_video;
    1.10  		SDL_VideoDevice *this  = current_video;
    1.11  		video->FreeHWSurface(this, surface);