From b0c21cab17cb40c89d5745f2b056ebb69a79d0a1 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 10 Jan 2006 12:25:59 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ gst-libs/gst/audio/gstaudiosrc.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 822ee9b11f..84e057183e 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 98bde12958..ec33d1238f 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); }