mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
udev: don't forget to unref devices we are not interested in
https://bugzilla.redhat.com/show_bug.cgi?id=552932
This commit is contained in:
parent
78811c5653
commit
15a3018bda
1 changed files with 3 additions and 1 deletions
|
|
@ -416,8 +416,10 @@ static void monitor_cb(
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!path_get_card_id(udev_device_get_devpath(dev)))
|
if (!path_get_card_id(udev_device_get_devpath(dev))) {
|
||||||
|
udev_device_unref(dev);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
process_device(u, dev);
|
process_device(u, dev);
|
||||||
udev_device_unref(dev);
|
udev_device_unref(dev);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue