Mercurial > sdl-ios-xcode
comparison src/video/SDL_surface.c @ 422:b1b9ee41be70
Memory leak fix for DirectX software surfaces
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 03 Jul 2002 04:54:55 +0000 |
parents | f6ffac90895c |
children | 41cadcba32e8 |
comparison
equal
deleted
inserted
replaced
421:195dd37b3d86 | 422:b1b9ee41be70 |
---|---|
810 } | 810 } |
811 if ( surface->map != NULL ) { | 811 if ( surface->map != NULL ) { |
812 SDL_FreeBlitMap(surface->map); | 812 SDL_FreeBlitMap(surface->map); |
813 surface->map = NULL; | 813 surface->map = NULL; |
814 } | 814 } |
815 if ( (surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE ) { | 815 if ( surface->hwdata ) { |
816 SDL_VideoDevice *video = current_video; | 816 SDL_VideoDevice *video = current_video; |
817 SDL_VideoDevice *this = current_video; | 817 SDL_VideoDevice *this = current_video; |
818 video->FreeHWSurface(this, surface); | 818 video->FreeHWSurface(this, surface); |
819 } | 819 } |
820 if ( surface->pixels && | 820 if ( surface->pixels && |