Merge pull request #149 from atong-tcs/leak
fix xf_gdi_bitmap_update() memory leak
This commit is contained in:
commit
b33c190b10
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user