tests: unref message correctly

This commit is contained in:
Mathieu Duponchelle 2014-06-27 17:01:34 +02:00 committed by Thibault Saunier
parent e81d987fad
commit 170ea10cde

View file

@ -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);