mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
pulsesink: do not leak clientname when setting up property
This commit is contained in:
parent
6a8af50111
commit
37c8abcdbd
1 changed files with 4 additions and 1 deletions
|
@ -1867,6 +1867,7 @@ gst_pulsesink_class_init (GstPulseSinkClass * klass)
|
||||||
GstBaseSinkClass *bc;
|
GstBaseSinkClass *bc;
|
||||||
GstBaseAudioSinkClass *gstaudiosink_class = GST_BASE_AUDIO_SINK_CLASS (klass);
|
GstBaseAudioSinkClass *gstaudiosink_class = GST_BASE_AUDIO_SINK_CLASS (klass);
|
||||||
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
|
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
|
||||||
|
gchar *clientname;
|
||||||
|
|
||||||
gobject_class->finalize = gst_pulsesink_finalize;
|
gobject_class->finalize = gst_pulsesink_finalize;
|
||||||
gobject_class->set_property = gst_pulsesink_set_property;
|
gobject_class->set_property = gst_pulsesink_set_property;
|
||||||
|
@ -1921,12 +1922,14 @@ gst_pulsesink_class_init (GstPulseSinkClass * klass)
|
||||||
*
|
*
|
||||||
* Since: 0.10.25
|
* Since: 0.10.25
|
||||||
*/
|
*/
|
||||||
|
clientname = gst_pulse_client_name ();
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_CLIENT,
|
PROP_CLIENT,
|
||||||
g_param_spec_string ("client", "Client",
|
g_param_spec_string ("client", "Client",
|
||||||
"The PulseAudio client name to use", gst_pulse_client_name (),
|
"The PulseAudio client name to use", clientname,
|
||||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
|
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
|
||||||
GST_PARAM_MUTABLE_READY));
|
GST_PARAM_MUTABLE_READY));
|
||||||
|
g_free (clientname);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstPulseSink:stream-properties
|
* GstPulseSink:stream-properties
|
||||||
|
|
Loading…
Reference in a new issue