From: Tim-Philipp Müller Date: Wed, 6 Mar 2019 09:23:47 +0000 (+0000) Subject: tests: vorbisec: fix leaks in unit test X-Git-Tag: 1.19.3~511^2~1200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=273da3ed2f24961b34e29c946251a5f6f0fcc977;p=platform%2Fupstream%2Fgstreamer.git tests: vorbisec: fix leaks in unit test --- diff --git a/tests/check/elements/vorbisdec.c b/tests/check/elements/vorbisdec.c index b18f97b..376f37d 100644 --- a/tests/check/elements/vorbisdec.c +++ b/tests/check/elements/vorbisdec.c @@ -99,6 +99,9 @@ cleanup_vorbisdec (GstElement * vorbisdec) gst_check_teardown_src_pad (vorbisdec); gst_check_teardown_sink_pad (vorbisdec); gst_check_teardown_element (vorbisdec); + + g_list_free_full (buffers, (GDestroyNotify) gst_buffer_unref); + buffers = NULL; } /* FIXME: also tests comment header */