mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-12 19:24:27 +08:00
fix xf_gdi_bitmap_update() memory leak
This commit is contained in:
parent
aa76b60a20
commit
0f69c586da
@ -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