Client/X11: Fix h264 context leak when DeleteSurface (#4089)
authorJiang, Zihao <zihao.jiang@yahoo.com>
Mon, 14 Aug 2017 08:16:14 +0000 (16:16 +0800)
committerakallabeth <akallabeth@users.noreply.github.com>
Mon, 14 Aug 2017 08:16:14 +0000 (10:16 +0200)
client/X11/xf_gfx.c

index ff685e3..1a66d74 100644 (file)
@@ -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);