mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
uvch264src: Fix small mem leak
This commit is contained in:
parent
a41e8698b1
commit
fb639741d7
1 changed files with 2 additions and 0 deletions
|
@ -1809,6 +1809,7 @@ xu_get_id (GstUvcH264Src * self)
|
|||
|
||||
GST_DEBUG_OBJECT (self, "Found H264 XU unit : %d", unit_id);
|
||||
|
||||
libusb_free_config_descriptor (config);
|
||||
libusb_unref_device (device);
|
||||
return unit_id;
|
||||
}
|
||||
|
@ -1816,6 +1817,7 @@ xu_get_id (GstUvcH264Src * self)
|
|||
}
|
||||
}
|
||||
}
|
||||
libusb_free_config_descriptor (config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue