xfreerdp: nocodec/nscodec free ximages after use

This commit is contained in:
Bernhard Miklautz 2012-03-29 13:01:42 +02:00
parent b1a80822d7
commit 25107cde67

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