From 0d39e2896e43f4ca5c4a80536a03c44232bf40ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 2 Nov 2010 12:29:05 +0000 Subject: [PATCH] tests: fix invalid free and buffer list leak in rtp library unit test --- tests/check/libs/rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/check/libs/rtp.c b/tests/check/libs/rtp.c index 8f0acac..defd6b6 100644 --- a/tests/check/libs/rtp.c +++ b/tests/check/libs/rtp.c @@ -477,7 +477,6 @@ GST_START_TEST (test_rtp_buffer_list_set_extension) misc_data, 2) == TRUE); gst_buffer_list_iterator_free (it); - gst_buffer_list_iterator_free (it); it = gst_buffer_list_iterate (list); fail_unless (gst_buffer_list_iterator_next_group (it)); buf = gst_buffer_list_iterator_next (it); @@ -540,6 +539,8 @@ GST_START_TEST (test_rtp_buffer_list_set_extension) &appbits, 5, 0, &pointer, &size) == TRUE); fail_unless (size == 2); fail_unless (memcmp (pointer, misc_data, 2) == 0); + + gst_buffer_list_unref (list); } GST_END_TEST; -- 2.7.4