Fixed memory leak in software YUV stretch code

This commit is contained in:
Sam Lantinga 2001-04-27 20:25:25 +00:00
parent b82574e71f
commit 5b0b51aa33

View File

@ -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);
}