From a1350852e77c444ccec3ef0fb64ee1bedcf69b63 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 10 Jun 2021 01:09:44 +0900 Subject: [PATCH] wasapi2sink: Fix ringbuffer object leak Part-of: --- sys/wasapi2/gstwasapi2sink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/wasapi2/gstwasapi2sink.c b/sys/wasapi2/gstwasapi2sink.c index 3bb82529ea..fca71384ae 100644 --- a/sys/wasapi2/gstwasapi2sink.c +++ b/sys/wasapi2/gstwasapi2sink.c @@ -302,6 +302,7 @@ gst_wasapi2_sink_get_caps (GstBaseSink * bsink, GstCaps * filter) /* Get caps might be able to block if device is not activated yet */ caps = gst_wasapi2_ring_buffer_get_caps (ringbuffer); + gst_object_unref (ringbuffer); } else { GST_OBJECT_UNLOCK (bsink); }