backend-rdp: fix memory leak
Free command data after all rects have been updated. This fixes a rather huge memory leak when using the RDP backend. Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
parent
9eb974aaaf
commit
d93c0f7059
@ -360,6 +360,8 @@ rdp_peer_refresh_raw(pixman_region32_t *region, pixman_image_t *image, freerdp_p
|
||||
}
|
||||
}
|
||||
|
||||
free(SURFACE_BITMAP_DATA(cmd));
|
||||
|
||||
marker.frameAction = SURFACECMD_FRAMEACTION_END;
|
||||
update->SurfaceFrameMarker(peer->context, &marker);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user