From 1e32d62c1e27e4df5d127c30fd3b6084e2db8483 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Wed, 13 Apr 2016 14:09:00 +0200 Subject: [PATCH] libs: fix deleting a GstVaapiCodedBufferPool object Call gst_vaapi_video_pool_finalize() in coded_buffer_pool_finalize(). Otherwise it is not called when the pool is destroyed and all objects referenced by the GstVaapiVideoPool are never released. https://bugzilla.gnome.org/show_bug.cgi?id=764993 --- gst-libs/gst/vaapi/gstvaapicodedbufferpool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/vaapi/gstvaapicodedbufferpool.c b/gst-libs/gst/vaapi/gstvaapicodedbufferpool.c index e247553..a46d501 100644 --- a/gst-libs/gst/vaapi/gstvaapicodedbufferpool.c +++ b/gst-libs/gst/vaapi/gstvaapicodedbufferpool.c @@ -54,6 +54,7 @@ coded_buffer_pool_init (GstVaapiCodedBufferPool * pool, static void coded_buffer_pool_finalize (GstVaapiCodedBufferPool * pool) { + gst_vaapi_video_pool_finalize (GST_VAAPI_VIDEO_POOL (pool)); gst_vaapi_object_replace (&pool->context, NULL); } -- 2.7.4