# HG changeset patch # User Sam Lantinga # Date 1025672095 0 # Node ID b1b9ee41be7055acfb81b7465f9551ce9b816150 # Parent 195dd37b3d86c2474ca50dfff69146fa28f93aa1 Memory leak fix for DirectX software surfaces diff -r 195dd37b3d86 -r b1b9ee41be70 src/video/SDL_surface.c --- a/src/video/SDL_surface.c Tue Jul 02 04:07:01 2002 +0000 +++ b/src/video/SDL_surface.c Wed Jul 03 04:54:55 2002 +0000 @@ -812,7 +812,7 @@ SDL_FreeBlitMap(surface->map); surface->map = NULL; } - if ( (surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE ) { + if ( surface->hwdata ) { SDL_VideoDevice *video = current_video; SDL_VideoDevice *this = current_video; video->FreeHWSurface(this, surface);