mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 17:07:15 +00:00
smartcard: Avoid crash on remove_interface call
SpiceCharDeviceInstance is not a GObject, the GObject is char_device->st as the above line is stating. The crash never happen as Qemu never calls spice_server_remove_interface for smartcards. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
80f2d7731d
commit
795d274e2b
@ -274,7 +274,7 @@ void smartcard_device_disconnect(SpiceCharDeviceInstance *char_device)
|
||||
{
|
||||
g_return_if_fail(RED_IS_CHAR_DEVICE_SMARTCARD(char_device->st));
|
||||
|
||||
g_object_unref(char_device);
|
||||
g_object_unref(char_device->st);
|
||||
}
|
||||
|
||||
RedCharDevice *smartcard_device_connect(RedsState *reds, SpiceCharDeviceInstance *char_device)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user