From c82f9c9f8ca1e6a8be45d4636d21ae12b748b8f7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 12 Nov 2022 08:35:12 +0100 Subject: [PATCH] transcode: Don't leak timer Part-of: --- .../gst-plugins-bad/gst/transcode/gst-cpu-throttling-clock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/transcode/gst-cpu-throttling-clock.c b/subprojects/gst-plugins-bad/gst/transcode/gst-cpu-throttling-clock.c index 45bb51a12f..31dfa8295b 100644 --- a/subprojects/gst-plugins-bad/gst/transcode/gst-cpu-throttling-clock.c +++ b/subprojects/gst-plugins-bad/gst/transcode/gst-cpu-throttling-clock.c @@ -165,6 +165,10 @@ gst_cpu_throttling_clock_dispose (GObject * object) gst_clock_id_unref (self->priv->evaluate_wait_time); self->priv->evaluate_wait_time = 0; } + if (self->priv->timer) { + gst_poll_free (self->priv->timer); + self->priv->timer = NULL; + } } static void