mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
v4l2: release ref after adding file to maps
This commit is contained in:
parent
46123cfcec
commit
c3206fa687
1 changed files with 1 additions and 0 deletions
|
|
@ -840,6 +840,7 @@ static int v4l2_openat(int dirfd, const char *path, int oflag, mode_t mode)
|
||||||
|
|
||||||
add_fd_map(res, file);
|
add_fd_map(res, file);
|
||||||
add_dev_for_serial(file->dev_id, file->serial);
|
add_dev_for_serial(file->dev_id, file->serial);
|
||||||
|
unref_file(file);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue