projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2ee068
)
rtp: Fix GBytes memory leak in test
author
Sebastian Dröge
<sebastian@centricular.com>
Tue, 15 Apr 2014 08:29:12 +0000
(10:29 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 15 Apr 2014 08:29:12 +0000
(10:29 +0200)
tests/check/libs/rtp.c
patch
|
blob
|
history
diff --git
a/tests/check/libs/rtp.c
b/tests/check/libs/rtp.c
index
6f8a3b3
..
2c0ffdf
100644
(file)
--- a/
tests/check/libs/rtp.c
+++ b/
tests/check/libs/rtp.c
@@
-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);