Commit 7d2da94b authored by Stefan Agner's avatar Stefan Agner Committed by Pekka Paalanen

backend-rdp: release seat on peer disconnect

Properly release the seat on RDP disconnect. Using current master
branch which is commit d93c0f70 ("backend-rdp: fix memory leak")
I was not able to reproduce the crash on reconnect as mentioned in the
current comment. Using Weston with rdp-backend directly as well as
using the screen-share plug-in allowed to reconnect just fine. Hence
release the Weston seat properly using weston_seat_release and free
the seat structure. This also avoids mouse pointers displayed for
every RDP connection.
Signed-off-by: Stefan Agner's avatarStefan Agner <stefan@agner.ch>
parent e3f447ee
Pipeline #214637 passed with stages
in 2 minutes and 3 seconds
......@@ -715,8 +715,8 @@ rdp_peer_context_free(freerdp_peer* client, RdpPeerContext* context)
if (context->item.flags & RDP_PEER_ACTIVATED) {
weston_seat_release_keyboard(context->item.seat);
weston_seat_release_pointer(context->item.seat);
/* XXX we should weston_seat_release(context->item.seat); here
* but it would crash on reconnect */
weston_seat_release(context->item.seat);
free(context->item.seat);
}
Stream_Free(context->encode_stream, TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment