Merge pull request #2635 from clivest/gdi_gfx_leaked_regions_fix
Fix two memory leaks in gdi/gfx
This commit is contained in:
commit
74ff78b467
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user