==17868== Invalid write of size 8 ==17868== at 0x4E3DB27: wl_list_remove (wayland-util.c:53) ==17868== by 0xCCB5EFC: focus_state_destroy (shell.c:417) ==17868== by 0x40FDAB: weston_seat_release (wayland-server.h:179) ==17868== by 0x884474E: rdp_peer_context_free (compositor-rdp.c:605) ==17868== by 0x8CDF461: freerdp_peer_context_free (peer.c:404) ==17868== by 0x8844ADC: rdp_client_activity (compositor-rdp.c:624) ==17868== by 0x4E3BD12: wl_event_loop_dispatch (event-loop.c:421) ==17868== by 0x4E3A6C4: wl_display_run (wayland-server.c:785) ==17868== by 0x408206: main (compositor.c:3305) ==17868== Address 0x8797b38 is 24 bytes inside a block of size 120 free'd ==17868== at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==17868== by 0x40FDAB: weston_seat_release (wayland-server.h:179) ==17868== by 0x884474E: rdp_peer_context_free (compositor-rdp.c:605) ==17868== by 0x8CDF461: freerdp_peer_context_free (peer.c:404) ==17868== by 0x8844ADC: rdp_client_activity (compositor-rdp.c:624) ==17868== by 0x4E3BD12: wl_event_loop_dispatch (event-loop.c:421) ==17868== by 0x4E3A6C4: wl_display_run (wayland-server.c:785) ==17868== by 0x408206: main (compositor.c:3305) ==17868==