summaryrefslogtreecommitdiff
path: root/tests/check/elements/audioresample.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-03-03 17:06:38 +0000
committerTim-Philipp Müller <tim@centricular.net>2013-03-03 17:06:38 +0000
commit155468d6ce58b032adab993979227a47b4e1fb42 (patch)
tree6e665cdcf3452bb1297d2a023c97c5959c581079 /tests/check/elements/audioresample.c
parent6a0b713b284c1b9e9b44c84492b20929e3f9347a (diff)
tests: fix leak in audioresample unit test
Diffstat (limited to 'tests/check/elements/audioresample.c')
-rw-r--r--tests/check/elements/audioresample.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/check/elements/audioresample.c b/tests/check/elements/audioresample.c
index 240ee3313..9f8f76c75 100644
--- a/tests/check/elements/audioresample.c
+++ b/tests/check/elements/audioresample.c
@@ -633,6 +633,9 @@ test_pipeline (const gchar * format, gint inrate, gint outrate, gint quality)
gst_element_set_state (pipeline, GST_STATE_NULL);
+ gst_bus_remove_signal_watch (bus);
+ gst_object_unref (bus);
+
fail_if (messages > 0, "Received imperfect timestamp messages");
gst_object_unref (pipeline);
}
@@ -882,6 +885,9 @@ GST_START_TEST (test_timestamp_drift)
fail_unless (gst_element_set_state (pipeline,
GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS);
g_main_loop_unref (loop);
+ gst_bus_remove_signal_watch (bus);
+ gst_object_unref (bus);
+
gst_object_unref (pipeline);
} GST_END_TEST;