Fixed memory leaks in YUV code
authorSam Lantinga <slouken@libsdl.org>
Thu, 13 Jun 2002 11:57:10 +0000
changeset 409 1c3cf7231cd4
parent 408 b2c97d579dfe
child 410 365f57b7c4ac
Fixed memory leaks in YUV code
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");