Fix two cases of leaked regions in gdi/gfx

This commit is contained in:
Clive Stevens 2015-05-20 12:35:24 +01:00
parent 1810656199
commit 5528b152ec
1 changed files with 4 additions and 0 deletions

View File

@ -250,6 +250,8 @@ int gdi_SurfaceCommand_RemoteFX(rdpGdi* gdi, RdpgfxClientContext* context, RDPGF
region16_uninit(&updateRegion); region16_uninit(&updateRegion);
} }
region16_uninit(&clippingRects);
rfx_message_free(gdi->codecs->rfx, message); rfx_message_free(gdi->codecs->rfx, message);
if (!gdi->inGfxFrame) if (!gdi->inGfxFrame)
@ -501,6 +503,8 @@ int gdi_SurfaceCommand_Progressive(rdpGdi* gdi, RdpgfxClientContext* context, RD
region16_uninit(&updateRegion); region16_uninit(&updateRegion);
} }
region16_uninit(&clippingRects);
if (!gdi->inGfxFrame) if (!gdi->inGfxFrame)
gdi_OutputUpdate(gdi); gdi_OutputUpdate(gdi);