audioconvert: clear convert object
authorWim Taymans <wtaymans@redhat.com>
Wed, 16 Dec 2015 09:44:16 +0000 (10:44 +0100)
committerWim Taymans <wtaymans@redhat.com>
Wed, 16 Dec 2015 10:13:15 +0000 (11:13 +0100)
gst/audioconvert/gstaudioconvert.c

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