From 08ca5ea3775d2b94056eb735f66e45757bfb7253 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Jul 2002 04:54:55 +0000 Subject: [PATCH] Memory leak fix for DirectX software surfaces --- src/video/SDL_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index 46bcf2eaa..445b0ca6a 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -812,7 +812,7 @@ void SDL_FreeSurface (SDL_Surface *surface) 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);