audioconvert: clear convert object

This commit is contained in:
Wim Taymans 2015-12-16 10:44:16 +01:00
parent 559fd76d7d
commit 8bcf183c7f

View file

@ -198,8 +198,10 @@ gst_audio_convert_dispose (GObject * obj)
{ {
GstAudioConvert *this = GST_AUDIO_CONVERT (obj); GstAudioConvert *this = GST_AUDIO_CONVERT (obj);
if (this->convert) if (this->convert) {
gst_audio_converter_free (this->convert); gst_audio_converter_free (this->convert);
this->convert = NULL;
}
G_OBJECT_CLASS (parent_class)->dispose (obj); G_OBJECT_CLASS (parent_class)->dispose (obj);
} }