summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2015-07-20 16:37:44 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-07-20 16:47:05 -0400
commit5585dc587831a8dbf6d563cd054a61c85992fe02 (patch)
tree48acaad3efae70019fcdac7f73c11efbbc30addb
parentc809dc173567dd3e739c49bb22eaccf94a84f1e7 (diff)
threadpool: Fix possible warning in gst_rtsp_thread_pool_cleanup()
https://bugzilla.gnome.org/show_bug.cgi?id=752640
-rw-r--r--gst/rtsp-server/rtsp-thread-pool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-thread-pool.c b/gst/rtsp-server/rtsp-thread-pool.c
index a8cce78..b9ee37b 100644
--- a/gst/rtsp-server/rtsp-thread-pool.c
+++ b/gst/rtsp-server/rtsp-thread-pool.c
@@ -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);
}