diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-06-28 13:59:26 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:04:51 +0300 |
commit | 11033ca5dcb031fea37b44dbcd07ebabc22288b8 (patch) | |
tree | 6f88ce5709f95a3a328f48097cc8f6e04db8b8a7 /server/char_device.c | |
parent | 8d02c14d20f95148a65e86fbb2ec97a223fa5c24 (diff) | |
download | spice-11033ca5dcb031fea37b44dbcd07ebabc22288b8.tar.gz spice-11033ca5dcb031fea37b44dbcd07ebabc22288b8.tar.xz spice-11033ca5dcb031fea37b44dbcd07ebabc22288b8.zip |
reds: add tracking for char devices
The list of attached char_devices will be used in the next patch
for notifying each instance of SpiceCharDeviceState when the vm
is started or stopped.
Diffstat (limited to 'server/char_device.c')
-rw-r--r-- | server/char_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/char_device.c b/server/char_device.c index e87c0296..c28e5484 100644 --- a/server/char_device.c +++ b/server/char_device.c @@ -644,6 +644,7 @@ static void spice_char_device_state_unref(SpiceCharDeviceState *char_dev) void spice_char_device_state_destroy(SpiceCharDeviceState *char_dev) { + reds_on_char_device_state_destroy(char_dev); core->timer_remove(char_dev->write_to_dev_timer); write_buffers_queue_free(&char_dev->write_queue); write_buffers_queue_free(&char_dev->write_bufs_pool); |