if ((!vals) ||
(sscanf(vals, "%f %f %f %f %f %f",
&cal[0], &cal[1], &cal[2], &cal[3], &cal[4], &cal[5]) != 6))
- return;
+ {
+ udev_device_unref(udev_device);
+ return;
+ }
+ udev_device_unref(udev_device);
ELOGF("E_INPUT_EVDEV", "calibration_set cal[%lf %lf %lf %lf %lf %lf] (%d x %d)",
NULL, cal[0], cal[1], cal[2], cal[3], cal[4], cal[5], w, h);
if ((!vals) ||
(sscanf(vals, "%f %f %f %f %f %f",
&cal[0], &cal[1], &cal[2], &cal[3], &cal[4], &cal[5]) != 6))
- return;
+ {
+ udev_device_unref(udev_device);
+ return;
+ }
+ udev_device_unref(udev_device);
ELOGF("E_INPUT_EVDEV", "axis_size_set cal[%lf %lf %lf %lf %lf %lf] (%d x %d)",
NULL, cal[0], cal[1], cal[2], cal[3], cal[4], cal[5], w, h);
const char *devpath;
udev_device = libinput_device_get_udev_device(edev->device);
+ if (!udev_device)
+ {
+ ERR("no udev_device");
+ return subclas;
+ }
+
devpath = udev_device_get_property_value(udev_device, "DEVPATH");
if (devpath && strstr(devpath, "virtual/input"))
{
else if (clas == ECORE_DEVICE_CLASS_KEYBOARD)
subclas = ECORE_DEVICE_SUBCLASS_VIRTUAL_REMOCON;
}
+ udev_device_unref(udev_device);
+
return subclas;
}