Commit 079731ed authored by Sam Lantinga's avatar Sam Lantinga

Fixed memory leak in software YUV stretch code

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4010
parent 5d94e3b1
...@@ -1299,6 +1299,9 @@ void SDL_FreeYUV_SW(_THIS, SDL_Overlay *overlay) ...@@ -1299,6 +1299,9 @@ void SDL_FreeYUV_SW(_THIS, SDL_Overlay *overlay)
swdata = overlay->hwdata; swdata = overlay->hwdata;
if ( swdata ) { if ( swdata ) {
if ( swdata->stretch ) {
SDL_FreeSurface(swdata->stretch);
}
if ( swdata->pixels ) { if ( swdata->pixels ) {
free(swdata->pixels); free(swdata->pixels);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment