diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 773c946818..d675f12625 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -225,6 +225,9 @@ _gl_memory_upload_propose_allocation (gpointer impl, GstQuery * decide_query, gst_query_add_allocation_pool (query, pool, size, 1, 0); } + if (pool) + gst_object_unref (pool); + return; invalid_caps: