diff --git a/tests/check/elements/amrnbenc.c b/tests/check/elements/amrnbenc.c index 38dd381b1d..70e85025a2 100644 --- a/tests/check/elements/amrnbenc.c +++ b/tests/check/elements/amrnbenc.c @@ -112,6 +112,8 @@ push_data (gint size, GstFlowReturn expected_return) GstFlowReturn res; buffer = gst_buffer_new_and_alloc (size); + /* make valgrind happier */ + gst_buffer_memset (buffer, 0, 0, size); res = gst_pad_push (srcpad, buffer); fail_unless (res == expected_return, diff --git a/tests/check/elements/x264enc.c b/tests/check/elements/x264enc.c index 769f558f39..c6a53c6f1a 100644 --- a/tests/check/elements/x264enc.c +++ b/tests/check/elements/x264enc.c @@ -138,6 +138,7 @@ test_video_profile (const gchar * profile, gint profile_id) /* code below assumes avc */ gst_caps_set_simple (caps, "stream-format", G_TYPE_STRING, "avc", NULL); gst_pad_set_caps (mysinkpad, caps); + gst_caps_unref (caps); gst_pad_use_fixed_caps (mysinkpad); caps = gst_caps_from_string (VIDEO_CAPS_STRING);