diff options
author | David Schleef <ds@schleef.org> | 2012-09-08 15:57:57 -0700 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-09-09 02:03:33 +0100 |
commit | be8aa2973e9de02b83c09a58351923b83e590bf8 (patch) | |
tree | 1841d628af7e36fe2fd4a53b12faa199ce111368 | |
parent | 0a4c2524fad98d2cc4ec125db78e6cbc1c5c3bef (diff) | |
download | gstreamer-plugins-bad-be8aa2973e9de02b83c09a58351923b83e590bf8.tar.gz |
inter: fix leaks in audiosrc/sink
-rw-r--r-- | gst/inter/gstinteraudiosink.c | 3 | ||||
-rw-r--r-- | gst/inter/gstinteraudiosrc.c | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gst/inter/gstinteraudiosink.c b/gst/inter/gstinteraudiosink.c index 11ce1bfd8..8cc3888cc 100644 --- a/gst/inter/gstinteraudiosink.c +++ b/gst/inter/gstinteraudiosink.c @@ -219,9 +219,10 @@ gst_inter_audio_sink_dispose (GObject * object) void gst_inter_audio_sink_finalize (GObject * object) { - /* GstInterAudioSink *interaudiosink = GST_INTER_AUDIO_SINK (object); */ + GstInterAudioSink *interaudiosink = GST_INTER_AUDIO_SINK (object); /* clean up object here */ + g_free (interaudiosink->channel); G_OBJECT_CLASS (parent_class)->finalize (object); } diff --git a/gst/inter/gstinteraudiosrc.c b/gst/inter/gstinteraudiosrc.c index 3e64eefc9..43ed43b1b 100644 --- a/gst/inter/gstinteraudiosrc.c +++ b/gst/inter/gstinteraudiosrc.c @@ -166,12 +166,10 @@ gst_inter_audio_src_class_init (GstInterAudioSrcClass * klass) base_src_class->prepare_seek_segment = GST_DEBUG_FUNCPTR (gst_inter_audio_src_prepare_seek_segment); -#if 0 g_object_class_install_property (gobject_class, PROP_CHANNEL, g_param_spec_string ("channel", "Channel", "Channel name to match inter src and sink elements", "default", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); -#endif } static void @@ -231,9 +229,10 @@ gst_inter_audio_src_dispose (GObject * object) void gst_inter_audio_src_finalize (GObject * object) { - /* GstInterAudioSrc *interaudiosrc = GST_INTER_AUDIO_SRC (object); */ + GstInterAudioSrc *interaudiosrc = GST_INTER_AUDIO_SRC (object); /* clean up object here */ + g_free (interaudiosrc->channel); G_OBJECT_CLASS (parent_class)->finalize (object); } |