Skip to content

Commit

Permalink
Memory leak fix for DirectX software surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 3, 2002
1 parent 828cafb commit 08ca5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_surface.c
Expand Up @@ -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);
Expand Down

0 comments on commit 08ca5ea

Please sign in to comment.