Move destruction to finalize/dispose methods instead of freeing from an external function. This make spicevmc_device_disconnect much more similar to smartcard_device_disconnect. Frediano Ziglio (3): spicevmc: Free pipe_item in finalize spicevmc: More RedVmcChannel::recv_from_client_buf cleanup to finalize spicevmc: Clear RedVmcChannel on red_char_device_spicevmc_dispose Jonathon Jongsma (1): spicevmc: store channel in char device server/spicevmc.c | 68 +++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 48 insertions(+), 20 deletions(-) -- 2.7.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel