From 07830461008fede17112f565ab6b7fc71b25aea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 24 Apr 2011 11:44:19 +0100 Subject: [PATCH] tests: clean up properly in the bin test_link_structure_change unit test Don't forget to set the pipeline back to NULL state, which makes valgrind happy again. --- tests/check/gst/gstbin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/check/gst/gstbin.c b/tests/check/gst/gstbin.c index 3adfd9fb87..c81fdeba68 100644 --- a/tests/check/gst/gstbin.c +++ b/tests/check/gst/gstbin.c @@ -1006,10 +1006,12 @@ GST_START_TEST (test_link_structure_change) gst_element_get_state (pipeline, NULL, NULL, GST_CLOCK_TIME_NONE); /* the state change will be done on src only if the pipeline correctly resyncs - * after that filesrc has been linked to identity */ + * after that fakesrc has been linked to identity */ gst_element_get_state (src, &state, NULL, 0); fail_unless_equals_int (state, GST_STATE_READY); + /* clean up */ + gst_element_set_state (pipeline, GST_STATE_NULL); gst_object_unref (bus); gst_object_unref (pipeline); }