Skip to content

Commit

Permalink
Fixed memory leak in software YUV stretch code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Lantinga committed Apr 27, 2001
1 parent 2fcff45 commit 928d4b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/SDL_yuv_sw.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 928d4b1

Please sign in to comment.