Skip to content
Permalink
Browse files

Fixed memory leak in software YUV stretch code

  • Loading branch information
Sam Lantinga committed Apr 27, 2001
1 parent 2fcff45 commit 928d4b1ec3f253a5d7803e63b6cad09a507747f9
Showing with 3 additions and 0 deletions.
  1. +3 −0 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);
}

0 comments on commit 928d4b1

Please sign in to comment.