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.
This commit is contained in:
Richard Hughes 2020-03-27 13:20:59 +00:00
parent 464eacdc53
commit 184baf6f4a

View File

@ -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