mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 13:16:43 -05:00
Fixed memory leak in software YUV stretch code
This commit is contained in:
@@ -1299,6 +1299,9 @@ void SDL_FreeYUV_SW(_THIS, SDL_Overlay *overlay)
|
||||
|
||||
swdata = overlay->hwdata;
|
||||
if ( swdata ) {
|
||||
if ( swdata->stretch ) {
|
||||
SDL_FreeSurface(swdata->stretch);
|
||||
}
|
||||
if ( swdata->pixels ) {
|
||||
free(swdata->pixels);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user