changeset 409:1c3cf7231cd4

Fixed memory leaks in YUV code
author Sam Lantinga <slouken@libsdl.org>
date Thu, 13 Jun 2002 11:57:10 +0000
parents b2c97d579dfe
children 365f57b7c4ac
files src/video/x11/SDL_x11yuv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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");