From: Michael Smith Date: Tue, 10 Jan 2006 12:25:59 +0000 (+0000) Subject: gst-libs/gst/audio/gstaudiosrc.c: Don't leak GCond in audio sources. X-Git-Tag: RELEASE-0_10_2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0c21cab17cb40c89d5745f2b056ebb69a79d0a1;p=platform%2Fupstream%2Fgst-plugins-base.git gst-libs/gst/audio/gstaudiosrc.c: Don't leak GCond in audio sources. Original commit message from CVS: * gst-libs/gst/audio/gstaudiosrc.c: (gst_audioringbuffer_dispose): Don't leak GCond in audio sources. --- diff --git a/ChangeLog b/ChangeLog index 822ee9b11..84e057183 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-10 Michael Smith + + * gst-libs/gst/audio/gstaudiosrc.c: (gst_audioringbuffer_dispose): + Don't leak GCond in audio sources. + 2006-01-10 Jan Schmidt * gst/playback/gstplaybin.c: (gen_audio_element): diff --git a/gst-libs/gst/audio/gstaudiosrc.c b/gst-libs/gst/audio/gstaudiosrc.c index 98bde1295..ec33d1238 100644 --- a/gst-libs/gst/audio/gstaudiosrc.c +++ b/gst-libs/gst/audio/gstaudiosrc.c @@ -231,6 +231,13 @@ gst_audioringbuffer_init (GstAudioRingBuffer * ringbuffer, static void gst_audioringbuffer_dispose (GObject * object) { + GstAudioRingBuffer *ringbuffer = GST_AUDIORING_BUFFER (object); + + if (ringbuffer->cond) { + g_cond_free (ringbuffer->cond); + ringbuffer->cond = NULL; + } + G_OBJECT_CLASS (ring_parent_class)->dispose (object); }