From 5528b152ecbc5089896bf729e534bfa76ce26957 Mon Sep 17 00:00:00 2001 From: Clive Stevens Date: Wed, 20 May 2015 12:35:24 +0100 Subject: [PATCH] Fix two cases of leaked regions in gdi/gfx --- libfreerdp/gdi/gfx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libfreerdp/gdi/gfx.c b/libfreerdp/gdi/gfx.c index e5fe996e8..a2dc73644 100644 --- a/libfreerdp/gdi/gfx.c +++ b/libfreerdp/gdi/gfx.c @@ -250,6 +250,8 @@ int gdi_SurfaceCommand_RemoteFX(rdpGdi* gdi, RdpgfxClientContext* context, RDPGF region16_uninit(&updateRegion); } + region16_uninit(&clippingRects); + rfx_message_free(gdi->codecs->rfx, message); if (!gdi->inGfxFrame) @@ -501,6 +503,8 @@ int gdi_SurfaceCommand_Progressive(rdpGdi* gdi, RdpgfxClientContext* context, RD region16_uninit(&updateRegion); } + region16_uninit(&clippingRects); + if (!gdi->inGfxFrame) gdi_OutputUpdate(gdi);