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.
This commit is contained in:
Wim Taymans 2006-06-12 13:49:42 +00:00
parent 1594d8f6e9
commit f1dd335024
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-06-12 Wim Taymans <wim@fluendo.com>
* 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 <edward@fluendo.com>
* gst/asfdemux/.cvsignore:

View file

@ -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);