transcode: Don't leak timer

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>
This commit is contained in:
Edward Hervey 2022-11-12 08:35:12 +01:00 committed by Edward Hervey
parent e821b65a64
commit c82f9c9f8c

View file

@ -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