projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e22ea5
)
pulse: Don't leak caps and structures in the device provider
author
Nirbheek Chauhan
<nirbheek@centricular.com>
Thu, 5 Nov 2015 13:09:33 +0000
(18:39 +0530)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 5 Nov 2015 17:54:48 +0000
(17:54 +0000)
ext/pulse/pulsedeviceprovider.c
patch
|
blob
|
history
diff --git
a/ext/pulse/pulsedeviceprovider.c
b/ext/pulse/pulsedeviceprovider.c
index
8a292b9
..
a1964da
100644
(file)
--- a/
ext/pulse/pulsedeviceprovider.c
+++ b/
ext/pulse/pulsedeviceprovider.c
@@
-607,6
+607,7
@@
gst_pulse_device_reconfigure_element (GstDevice * device, GstElement * element)
return TRUE;
}
+/* Takes ownership of @caps and @props */
static GstDevice *
gst_pulse_device_new (guint device_index, const gchar * device_name,
GstCaps * caps, const gchar * internal_name, GstPulseDeviceType type,
@@
-644,6
+645,9
@@
gst_pulse_device_new (guint device_index, const gchar * device_name,
gstdev->device_index = device_index;
gstdev->element = element;
+ gst_structure_free (props);
+ gst_caps_unref (caps);
+
return GST_DEVICE (gstdev);
}