mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
threadpool: Fix possible warning in gst_rtsp_thread_pool_cleanup()
https://bugzilla.gnome.org/show_bug.cgi?id=752640
This commit is contained in:
parent
c809dc1735
commit
5585dc5878
1 changed files with 2 additions and 1 deletions
|
@ -552,10 +552,11 @@ gst_rtsp_thread_pool_cleanup (void)
|
||||||
GstRTSPThreadPoolClass *klass;
|
GstRTSPThreadPoolClass *klass;
|
||||||
|
|
||||||
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 ()));
|
(gst_rtsp_thread_pool_get_type ()));
|
||||||
if (klass->pool != NULL) {
|
if (klass->pool != NULL) {
|
||||||
g_thread_pool_free (klass->pool, FALSE, TRUE);
|
g_thread_pool_free (klass->pool, FALSE, TRUE);
|
||||||
klass->pool = NULL;
|
klass->pool = NULL;
|
||||||
}
|
}
|
||||||
|
g_type_class_unref (klass);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue