Skip to content
Permalink
Browse files
Memory leak fix for DirectX software surfaces
  • Loading branch information
slouken committed Jul 3, 2002
1 parent 828cafb commit 08ca5ea3775d2b94056eb735f66e45757bfb7253
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 08ca5ea

Please sign in to comment.