Peter Xu
4e4b57342e
chardev: fix incorrect unref of source
glib reported error when pty chardev used:
$ ./qemu-system-x86_64 -chardev pty,id=foo -device isa-serial,chardev=foo
qemu-system-x86_64: -chardev pty,id=foo: char device redirected to /dev/pts/2 (label foo)
(qemu-system-x86_64:27885): GLib-CRITICAL **: g_source_unref: assertion 'source != NULL' failed
(qemu-system-x86_64:27885): GLib-CRITICAL **: g_source_unref: assertion 'source != NULL' failed
This patch fixes that.
Fixes: 2c716ba150 ("chardev: introduce qemu_chr_timeout_add_ms()")
CC: Paolo Bonzini <pbonzini@redhat.com>
Reported-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180118052049.31119-1-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-02-05 13:54:39 +01:00
..
2017-12-21 09:22:44 +01:00
2017-06-02 11:33:52 +04:00
2017-09-22 21:07:27 +02:00
2018-01-12 13:22:02 +01:00
2017-06-02 11:33:52 +04:00
2017-06-02 11:33:52 +04:00
2017-12-21 09:30:32 +01:00
2017-06-02 11:33:52 +04:00
2017-06-02 11:33:52 +04:00
2017-06-02 11:33:52 +04:00
2018-02-05 13:54:39 +01:00
2017-06-02 11:33:52 +04:00
2018-01-16 14:54:52 +01:00
2018-01-12 13:22:02 +01:00
2017-06-02 11:33:52 +04:00
2017-09-22 21:07:27 +02:00
2017-06-02 11:33:52 +04:00
2017-06-02 11:33:52 +04:00
2018-01-12 13:22:02 +01:00
2017-09-22 10:20:34 +08:00
2017-06-02 11:33:53 +04:00
2017-06-02 11:33:53 +04:00
2017-06-02 11:33:53 +04:00
2017-07-31 13:12:53 +03:00
2017-12-18 17:07:02 +03:00