# HG changeset patch # User Sam Lantinga # Date 1023969634 0 # Node ID 365f57b7c4acf3ca66ec7e95aa06396a216eaaf4 # Parent 1c3cf7231cd4dd2e88bc43ee5a7c7bb15fbdc530 *** empty log message *** diff -r 1c3cf7231cd4 -r 365f57b7c4ac src/video/x11/SDL_x11yuv.c --- a/src/video/x11/SDL_x11yuv.c Thu Jun 13 11:57:10 2002 +0000 +++ b/src/video/x11/SDL_x11yuv.c Thu Jun 13 12:00:34 2002 +0000 @@ -123,7 +123,9 @@ } } } - XFree(formats); + if ( formats ) { + XFree(formats); + } } } SDL_NAME(XvFreeAdaptorInfo)(ainfo);