mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-09 21:31:18 +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);
|
GST_DEBUG_OBJECT (self, "Found H264 XU unit : %d", unit_id);
|
||||||
|
|
||||||
|
libusb_free_config_descriptor (config);
|
||||||
libusb_unref_device (device);
|
libusb_unref_device (device);
|
||||||
return unit_id;
|
return unit_id;
|
||||||
}
|
}
|
||||||
|
@ -1816,6 +1817,7 @@ xu_get_id (GstUvcH264Src * self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
libusb_free_config_descriptor (config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue