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.
This commit is contained in:
Michael Smith 2006-01-10 12:25:59 +00:00
parent c65c75abe8
commit b0c21cab17
2 changed files with 12 additions and 0 deletions

View file

@ -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> 2006-01-10 Jan Schmidt <thaytan@mad.scientist.com>
* gst/playback/gstplaybin.c: (gen_audio_element): * gst/playback/gstplaybin.c: (gen_audio_element):

View file

@ -231,6 +231,13 @@ gst_audioringbuffer_init (GstAudioRingBuffer * ringbuffer,
static void static void
gst_audioringbuffer_dispose (GObject * object) 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); G_OBJECT_CLASS (ring_parent_class)->dispose (object);
} }