gst/audioconvert/gstaudioconvert.c: Initalize the AudioConvertCtx with zeroes, otherw...
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 24 Apr 2007 18:58:25 +0000 (18:58 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 24 Apr 2007 18:58:25 +0000 (18:58 +0000)
Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_init):
Initalize the AudioConvertCtx with zeroes, otherwise it will contain
pointers to random memory which are passed to g_free() when
audio_convert_prepare_context() is called the first time.

ChangeLog
gst/audioconvert/gstaudioconvert.c

index cc12532..baa3f6b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-04-24  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       * gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_init):
+       Initalize the AudioConvertCtx with zeroes, otherwise it will contain
+       pointers to random memory which are passed to g_free() when
+       audio_convert_prepare_context() is called the first time.
+
 2007-04-24  Tim-Philipp Müller  <tim at centricular dot net>
 
        Patch by: Dan Williams <dcbw redhat com>
index d94f8ab..d2a2067 100644 (file)
@@ -226,6 +226,7 @@ gst_audio_convert_class_init (GstAudioConvertClass * klass)
 static void
 gst_audio_convert_init (GstAudioConvert * this, GstAudioConvertClass * g_class)
 {
+  memset (&this->ctx, 0, sizeof (AudioConvertCtx));
 }
 
 static void