mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
rtp: Fix GBytes memory leak in test
This commit is contained in:
parent
f2ee068729
commit
29758da255
1 changed files with 2 additions and 0 deletions
|
@ -934,6 +934,7 @@ GST_START_TEST (test_rtp_buffer_get_payload_bytes)
|
|||
gst_rtp_buffer_unmap (&rtp);
|
||||
gst_buffer_unmap (buf, &map);
|
||||
gst_buffer_unref (buf);
|
||||
g_bytes_unref (gb);
|
||||
|
||||
/* create RTP buffer containing RTP packet */
|
||||
buf = gst_buffer_new_and_alloc (sizeof (rtppacket));
|
||||
|
@ -950,6 +951,7 @@ GST_START_TEST (test_rtp_buffer_get_payload_bytes)
|
|||
fail_unless (data != NULL);
|
||||
fail_unless (size == (sizeof (rtppacket) - RTP_HEADER_LEN));
|
||||
fail_unless_equals_string ("Hello", data);
|
||||
g_bytes_unref (gb);
|
||||
|
||||
gst_rtp_buffer_unmap (&rtp);
|
||||
gst_buffer_unmap (buf, &map);
|
||||
|
|
Loading…
Reference in a new issue