Memory leak fix for DirectX software surfaces
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40423
This commit is contained in:
parent
38cfc74872
commit
69c56b9025
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue