mirror of
https://github.com/encounter/SDL.git
synced 2025-05-29 02:31:27 +00:00
Fixed bug 3855 - Memory leak in SDL_FreeSurface
This commit is contained in:
parent
e564da78b7
commit
db20e71d54
@ -1217,6 +1217,9 @@ SDL_FreeSurface(SDL_Surface * surface)
|
|||||||
if (!(surface->flags & SDL_PREALLOC)) {
|
if (!(surface->flags & SDL_PREALLOC)) {
|
||||||
SDL_free(surface->pixels);
|
SDL_free(surface->pixels);
|
||||||
}
|
}
|
||||||
|
if (surface->map) {
|
||||||
|
SDL_FreeBlitMap(surface->map);
|
||||||
|
}
|
||||||
SDL_free(surface);
|
SDL_free(surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user