gst-libs/gst/audio/gstaudiosrc.c: Don't leak GCond in audio sources.
authorMichael Smith <msmith@xiph.org>
Tue, 10 Jan 2006 12:25:59 +0000 (12:25 +0000)
committerMichael Smith <msmith@xiph.org>
Tue, 10 Jan 2006 12:25:59 +0000 (12:25 +0000)
Original commit message from CVS:
* gst-libs/gst/audio/gstaudiosrc.c: (gst_audioringbuffer_dispose):
Don't leak GCond in audio sources.

ChangeLog
gst-libs/gst/audio/gstaudiosrc.c

index 822ee9b..84e0571 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-10  Michael Smith  <msmith@fluendo.com>
+
+       * gst-libs/gst/audio/gstaudiosrc.c: (gst_audioringbuffer_dispose):
+         Don't leak GCond in audio sources.
+
 2006-01-10  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * gst/playback/gstplaybin.c: (gen_audio_element):
index 98bde12..ec33d12 100644 (file)
@@ -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);
 }