From f1dd33502480aa9dfd21c3a9609dc2d6c48a47a1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 12 Jun 2006 13:49:42 +0000 Subject: [PATCH] tests/check/elements/amrnbenc.c: Init memory before feeding it to the encoder to make the valgrind test succeed. Original commit message from CVS: * tests/check/elements/amrnbenc.c: (push_data): Init memory before feeding it to the encoder to make the valgrind test succeed. --- ChangeLog | 6 ++++++ tests/check/elements/amrnbenc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index af2832985e..3823344459 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-12 Wim Taymans + + * tests/check/elements/amrnbenc.c: (push_data): + Init memory before feeding it to the encoder to make + the valgrind test succeed. + 2006-06-12 Edward Hervey * gst/asfdemux/.cvsignore: diff --git a/tests/check/elements/amrnbenc.c b/tests/check/elements/amrnbenc.c index c45822acde..fb173a2ce4 100644 --- a/tests/check/elements/amrnbenc.c +++ b/tests/check/elements/amrnbenc.c @@ -115,7 +115,7 @@ push_data (gint size, GstFlowReturn expected_return) { GstBuffer *buffer; GstFlowReturn res; - gchar *data = g_malloc (size); + gchar *data = g_malloc0 (size); buffer = buffer_new (data, size); g_free (data);