Merge pull request #521 from bmiklautz/ximage_leak

xfreerdp: nocodec/nscodec free ximages after use
This commit is contained in:
Anthony 2012-03-30 07:16:09 -07:00
commit 16f4701ed0

View File

@ -945,6 +945,7 @@ void xf_gdi_surface_bits(rdpContext* context, SURFACE_BITS_COMMAND* surface_bits
XPutImage(xfi->display, xfi->primary, xfi->gc, image, 0, 0,
surface_bits_command->destLeft, surface_bits_command->destTop,
surface_bits_command->width, surface_bits_command->height);
XFree(image);
if (xfi->remote_app != true)
{
@ -979,6 +980,7 @@ void xf_gdi_surface_bits(rdpContext* context, SURFACE_BITS_COMMAND* surface_bits
XPutImage(xfi->display, xfi->primary, xfi->gc, image, 0, 0,
surface_bits_command->destLeft, surface_bits_command->destTop,
surface_bits_command->width, surface_bits_command->height);
XFree(image);
if (xfi->remote_app != true)
{