Client/X11: Fix h264 context leak when DeleteSurface (#4089)

This commit is contained in:
Jiang, Zihao 2017-08-14 16:16:14 +08:00 committed by akallabeth
parent 6b7b602370
commit 790c48017c

View 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);