changeset 410:365f57b7c4ac

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Thu, 13 Jun 2002 12:00:34 +0000
parents 1c3cf7231cd4
children 8c4999b0ac10
files src/video/x11/SDL_x11yuv.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);