mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 08:56:25 +00:00
Fixed bug 3855 - Memory leak in SDL_FreeSurface
This commit is contained in:
@@ -1217,6 +1217,9 @@ SDL_FreeSurface(SDL_Surface * surface)
|
||||
if (!(surface->flags & SDL_PREALLOC)) {
|
||||
SDL_free(surface->pixels);
|
||||
}
|
||||
if (surface->map) {
|
||||
SDL_FreeBlitMap(surface->map);
|
||||
}
|
||||
SDL_free(surface);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user