mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00:00
video: fix surface leak when duplicating mjpeg
(cherry picked from commit eb918af3dc)
This commit is contained in:
parent
cec6073085
commit
7939309520
1 changed files with 1 additions and 0 deletions
|
|
@ -1939,6 +1939,7 @@ SDL_Surface *SDL_ConvertSurfaceAndColorspace(SDL_Surface *surface, SDL_PixelForm
|
|||
if (!convert->pixels) {
|
||||
goto error;
|
||||
}
|
||||
convert->flags &= ~SDL_SURFACE_PREALLOCATED;
|
||||
convert->pitch = surface->pitch;
|
||||
SDL_memcpy(convert->pixels, surface->pixels, size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue