forked from drath/libratbag
Drop an excess udev_device_unref
Since fcda14df61 the device is owned by the caller, so we mustn't touch the
device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -170,7 +170,6 @@ ratbag_device_init_udev(struct libratbag *libratbag, struct ratbag *ratbag,
|
||||
rc = 0;
|
||||
udev_device_unref(hidraw_udev);
|
||||
out:
|
||||
udev_device_unref(udev_device);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user