summaryrefslogtreecommitdiff
path: root/ext/sndfile
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sndfile')
-rw-r--r--ext/sndfile/gstsf.c5
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);
}