inter: fix leaks in audiosrc/sink

This commit is contained in:
David Schleef 2012-09-08 15:57:57 -07:00 committed by Tim-Philipp Müller
parent 0a4c2524fa
commit be8aa2973e
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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);
}