From 184baf6f4ace2dc3835bd1af4864672c8fbded01 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 27 Mar 2020 13:20:59 +0000 Subject: [PATCH] trivial: Partially revert some of 464eacdc The FuUsbDevice was using a locker of NULL to indicate unlocked, and just calling `fu_device_locker_close()` does not unset the object. --- libfwupdplugin/fu-usb-device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfwupdplugin/fu-usb-device.c b/libfwupdplugin/fu-usb-device.c index 89a621aa1..03eb02045 100644 --- a/libfwupdplugin/fu-usb-device.c +++ b/libfwupdplugin/fu-usb-device.c @@ -282,7 +282,8 @@ fu_usb_device_close (FuDevice *device, GError **error) return FALSE; } - return fu_device_locker_close (priv->usb_device_locker, error); + g_clear_object (&priv->usb_device_locker); + return TRUE; } static gboolean