From: Xavier Claessens Date: Mon, 20 Jul 2015 20:37:44 +0000 (-0400) Subject: threadpool: Fix possible warning in gst_rtsp_thread_pool_cleanup() X-Git-Tag: 1.19.3~495^2~620 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=5585dc587831a8dbf6d563cd054a61c85992fe02;p=platform%2Fupstream%2Fgstreamer.git threadpool: Fix possible warning in gst_rtsp_thread_pool_cleanup() https://bugzilla.gnome.org/show_bug.cgi?id=752640 --- 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); }