mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
tests: fix invalid free and buffer list leak in rtp library unit test
This commit is contained in:
parent
19db1e763f
commit
0d39e2896e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue