From: Sebastian Dröge Date: Sun, 19 Dec 2010 10:02:41 +0000 (+0100) Subject: wavenc: Fix memory leaks in the unit test X-Git-Tag: RELEASE-0.10.27~210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ae9f125f0065121301b4a6c673ac56af801fad9;p=platform%2Fupstream%2Fgst-plugins-good.git wavenc: Fix memory leaks in the unit test --- diff --git a/tests/check/pipelines/wavenc.c b/tests/check/pipelines/wavenc.c index 1db4635dc..ee5a3ffc0 100644 --- a/tests/check/pipelines/wavenc.c +++ b/tests/check/pipelines/wavenc.c @@ -111,6 +111,7 @@ make_n_channel_wav (const gint channels, const GValueArray * arr) g_main_loop_run (loop); gst_element_set_state (pipeline, GST_STATE_NULL); + gst_object_unref (pipeline); g_free (audiotestsrc); } @@ -129,6 +130,7 @@ GST_START_TEST (test_encode_stereo) g_value_unset (&val); make_n_channel_wav (2, arr); + g_value_array_free (arr); } GST_END_TEST;