diff options
Diffstat (limited to 'ext/sndfile')
-rw-r--r-- | ext/sndfile/gstsf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/sndfile/gstsf.c b/ext/sndfile/gstsf.c index d48e2d4f1..7a83e0676 100644 --- a/ext/sndfile/gstsf.c +++ b/ext/sndfile/gstsf.c @@ -327,7 +327,10 @@ gst_sf_dispose (GObject * object) { GstSF *this = (GstSF *) object; - gst_object_unparent (GST_OBJECT (this->provided_clock)); + if (this->provided_clock) { + gst_object_unparent (GST_OBJECT (this->provided_clock)); + this->provided_clock = NULL; + } G_OBJECT_CLASS (parent_class)->dispose (object); } |