mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
avfdeviceprovider: do not leak the properties
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3268>
This commit is contained in:
parent
9fc753a4eb
commit
d44eb4b2fa
1 changed files with 5 additions and 0 deletions
|
@ -76,11 +76,16 @@ gst_av_capture_device_get_props (AVCaptureDevice *device)
|
||||||
"avf.has_torch", G_TYPE_BOOLEAN, [device hasTorch],
|
"avf.has_torch", G_TYPE_BOOLEAN, [device hasTorch],
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
g_free (unique_id);
|
||||||
|
g_free (model_id);
|
||||||
|
|
||||||
#if !HAVE_IOS
|
#if !HAVE_IOS
|
||||||
char *manufacturer = g_strdup ([[device manufacturer] UTF8String]);
|
char *manufacturer = g_strdup ([[device manufacturer] UTF8String]);
|
||||||
gst_structure_set (props,
|
gst_structure_set (props,
|
||||||
"avf.manufacturer", G_TYPE_STRING, manufacturer,
|
"avf.manufacturer", G_TYPE_STRING, manufacturer,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
g_free (manufacturer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return props;
|
return props;
|
||||||
|
|
Loading…
Reference in a new issue