From 170ea10cdec34a51907977b1022a27a40baf68a8 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 27 Jun 2014 17:01:34 +0200 Subject: [PATCH] tests: unref message correctly --- tests/check/gnl/gnlcomposition.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/check/gnl/gnlcomposition.c b/tests/check/gnl/gnlcomposition.c index 46e93caf9b..68ad7ade28 100644 --- a/tests/check/gnl/gnlcomposition.c +++ b/tests/check/gnl/gnlcomposition.c @@ -257,6 +257,8 @@ GST_START_TEST (test_simple_adder) message = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_ASYNC_DONE | GST_MESSAGE_ERROR); + gst_mini_object_unref (GST_MINI_OBJECT (message)); + if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ERROR) fail_error_message (message);