From 25107cde67c9872ae3c1741098df8da3c5973cc8 Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Thu, 29 Mar 2012 13:01:42 +0200 Subject: [PATCH] xfreerdp: nocodec/nscodec free ximages after use --- client/X11/xf_gdi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/X11/xf_gdi.c b/client/X11/xf_gdi.c index 89a0a764c..20c07e501 100644 --- a/client/X11/xf_gdi.c +++ b/client/X11/xf_gdi.c @@ -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) {