Commit aa783439 authored by Sam Lantinga's avatar Sam Lantinga

Fixed memory leaks in YUV code

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40410
parent 76555d8b
...@@ -123,8 +123,10 @@ SDL_Overlay *X11_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, S ...@@ -123,8 +123,10 @@ SDL_Overlay *X11_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, S
} }
} }
} }
XFree(formats);
} }
} }
SDL_NAME(XvFreeAdaptorInfo)(ainfo);
} }
if ( xv_port == -1 ) { if ( xv_port == -1 ) {
SDL_SetError("No available video ports for requested format"); SDL_SetError("No available video ports for requested format");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment