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