diff --git a/src/video/SDL_yuv_sw.c b/src/video/SDL_yuv_sw.c index fc747406e..4e08c7fda 100644 --- a/src/video/SDL_yuv_sw.c +++ b/src/video/SDL_yuv_sw.c @@ -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); }