From 790c48017cccedfe7b76afb1df71db2cb7f835fb Mon Sep 17 00:00:00 2001 From: "Jiang, Zihao" Date: Mon, 14 Aug 2017 16:16:14 +0800 Subject: [PATCH] Client/X11: Fix h264 context leak when DeleteSurface (#4089) --- client/X11/xf_gfx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/X11/xf_gfx.c b/client/X11/xf_gfx.c index ff685e3..1a66d74 100644 --- a/client/X11/xf_gfx.c +++ b/client/X11/xf_gfx.c @@ -328,6 +328,9 @@ static UINT xf_DeleteSurface(RdpgfxClientContext* context, if (surface) { +#ifdef WITH_GFX_H264 + h264_context_free(surface->gdi.h264); +#endif XFree(surface->image); _aligned_free(surface->gdi.data); _aligned_free(surface->stage); -- 2.7.4