1
0
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:
Peter Hutterer
2015-08-19 10:07:37 +10:00
parent 45777d9a96
commit 2c64eacd61

View File

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