threadpool: Fix possible warning in gst_rtsp_thread_pool_cleanup()

https://bugzilla.gnome.org/show_bug.cgi?id=752640
This commit is contained in:
Xavier Claessens 2015-07-20 16:37:44 -04:00 committed by Nicolas Dufresne
parent c809dc1735
commit 5585dc5878

View file

@ -552,10 +552,11 @@ gst_rtsp_thread_pool_cleanup (void)
GstRTSPThreadPoolClass *klass;
klass =
GST_RTSP_THREAD_POOL_CLASS (g_type_class_peek
GST_RTSP_THREAD_POOL_CLASS (g_type_class_ref
(gst_rtsp_thread_pool_get_type ()));
if (klass->pool != NULL) {
g_thread_pool_free (klass->pool, FALSE, TRUE);
klass->pool = NULL;
}
g_type_class_unref (klass);
}