From 8501fbd21616e374128f434b38db4dfda1625597 Mon Sep 17 00:00:00 2001 From: Jonas Holmberg Date: Fri, 13 Sep 2013 14:41:45 +0200 Subject: [PATCH] gst: Stop all unused threads in GThreadPool in gst_deinit() Since the default number of max unused threads in GThreadPool has been changed from 0 to 2 it needs to be set to 0 to stop all threads or valgrind will report them as memory leaks. --- gst/gst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/gst.c b/gst/gst.c index fd676a3c79..0c947f99e2 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -942,6 +942,7 @@ gst_deinit (void) return; } + g_thread_pool_set_max_unused_threads (0); bin_class = GST_BIN_CLASS (g_type_class_peek (gst_bin_get_type ())); if (bin_class->pool != NULL) { g_thread_pool_free (bin_class->pool, FALSE, TRUE);