diff --git a/ChangeLog b/ChangeLog index 9854dc230f..c36d80d5b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-03-22 Wim Taymans + + * gst-libs/gst/audio/gstbaseaudiosink.c: + (gst_base_audio_sink_dispose): + Since we _parent the ringbuffer, we also need to + _unparent instead of a plain _unref. + 2006-03-22 Wim Taymans * tests/examples/seek/seek.c: (end_scrub), (do_seek), (seek_cb), diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index fdbd951a48..bb445e5b1f 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -166,9 +166,10 @@ gst_base_audio_sink_dispose (GObject * object) gst_object_unref (sink->provided_clock); sink->provided_clock = NULL; - if (sink->ringbuffer) - gst_object_unref (sink->ringbuffer); - sink->ringbuffer = NULL; + if (sink->ringbuffer) { + gst_object_unparent (GST_OBJECT_CAST (sink->ringbuffer)); + sink->ringbuffer = NULL; + } G_OBJECT_CLASS (parent_class)->dispose (object); }