Merge pull request #2635 from clivest/gdi_gfx_leaked_regions_fix

Fix two memory leaks in gdi/gfx
This commit is contained in:
Marc-André Moreau 2015-05-20 09:40:24 -04:00
commit 74ff78b467

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