# HG changeset patch # User Sam Lantinga # Date 1023969430 0 # Node ID 1c3cf7231cd4dd2e88bc43ee5a7c7bb15fbdc530 # Parent b2c97d579dfe40db6d881fe453120e876cbcadf1 Fixed memory leaks in YUV code diff -r b2c97d579dfe -r 1c3cf7231cd4 src/video/x11/SDL_x11yuv.c --- a/src/video/x11/SDL_x11yuv.c Wed Jun 12 23:49:31 2002 +0000 +++ b/src/video/x11/SDL_x11yuv.c Thu Jun 13 11:57:10 2002 +0000 @@ -123,8 +123,10 @@ } } } + XFree(formats); } } + SDL_NAME(XvFreeAdaptorInfo)(ainfo); } if ( xv_port == -1 ) { SDL_SetError("No available video ports for requested format");