From: Sebastian Dröge Date: Tue, 24 Apr 2007 18:58:25 +0000 (+0000) Subject: gst/audioconvert/gstaudioconvert.c: Initalize the AudioConvertCtx with zeroes, otherw... X-Git-Tag: RELEASE-0_10_13~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84c824b952c195f0214759a9842ba9790d7a8e1a;p=platform%2Fupstream%2Fgst-plugins-base.git gst/audioconvert/gstaudioconvert.c: Initalize the AudioConvertCtx with zeroes, otherwise it will contain pointers to ... 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. --- diff --git a/ChangeLog b/ChangeLog index cc12532..baa3f6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-04-24 Sebastian Dröge + + * 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 Patch by: Dan Williams diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index d94f8ab..d2a2067 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -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