From: Guillaume Desmottes Date: Thu, 19 May 2016 09:51:17 +0000 (+0300) Subject: uvch264demux: fix buffer leaks in test X-Git-Tag: 1.10.4~581 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bebe4ca7ab5637710d2aa973df389c121fb84614;p=platform%2Fupstream%2Fgst-plugins-bad.git uvch264demux: fix buffer leaks in test The mock chain functions aren't unreffing the buffers so the caller should do it. https://bugzilla.gnome.org/show_bug.cgi?id=766663 --- diff --git a/tests/check/elements/uvch264demux.c b/tests/check/elements/uvch264demux.c index fb8b17f..cf5c26a 100644 --- a/tests/check/elements/uvch264demux.c +++ b/tests/check/elements/uvch264demux.c @@ -373,6 +373,7 @@ GST_START_TEST (test_no_data) fail_unless (buffer_h264 == NULL && buffer_jpg != NULL); fail_unless (buffer_nv12 == NULL && buffer_yuy2 == NULL); fail_unless (gerror == NULL && error_debug == NULL); + gst_buffer_unref (buffer_jpg); _teardown_test (); } @@ -644,6 +645,7 @@ GST_START_TEST (test_no_sos_marker) fail_unless (gerror == NULL); fail_unless (gst_buffer_get_size (buffer_h264) == sizeof (h264_data)); fail_if (gst_buffer_memcmp (buffer_h264, 0, h264_data, sizeof (h264_data))); + gst_buffer_unref (buffer_h264); _teardown_test (); }