tests: fix message leak in seek test
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 31 Mar 2017 11:22:00 +0000 (12:22 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 19 Apr 2017 12:39:46 +0000 (13:39 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=780757

tests/check/pipelines/seek.c

index 1461831..28bb884 100644 (file)
@@ -406,6 +406,7 @@ GST_START_TEST (test_loopback_1)
    *  screwed up. */
   fail_unless (msg, "no message within the timed window");
   fail_unless_equals_string (GST_MESSAGE_TYPE_NAME (msg), "segment-done");
+  gst_message_unref (msg);
 
   res = gst_element_set_state (bin, GST_STATE_NULL);
   fail_unless (res != GST_STATE_CHANGE_FAILURE, NULL);