Merge pull request #149 from atong-tcs/leak

fix xf_gdi_bitmap_update() memory leak
This commit is contained in:
Marc-André Moreau 2011-10-15 10:05:34 -07:00
commit b33c190b10

View File

@ -308,6 +308,9 @@ void xf_gdi_bitmap_update(rdpUpdate* update, BITMAP_UPDATE* bitmap)
XPutImage(xfi->display, xfi->primary, xfi->gc, image, 0, 0, x, y, w, h);
XFree(image);
xfree(data);
if (xfi->remote_app != True)
XCopyArea(xfi->display, xfi->primary, xfi->drawable, xfi->gc, x, y, w, h, x, y);