From e6402e2c2a04a991cdb347c21e51ff2daa6037c7 Mon Sep 17 00:00:00 2001 From: Hannele Ruiz Date: Sat, 16 Dec 2023 16:35:21 -0300 Subject: [PATCH] Added finalizer so the bink video id gets released --- LemonUI/Elements/ScaledBink.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/LemonUI/Elements/ScaledBink.cs b/LemonUI/Elements/ScaledBink.cs index 23df25a..6afb078 100644 --- a/LemonUI/Elements/ScaledBink.cs +++ b/LemonUI/Elements/ScaledBink.cs @@ -84,6 +84,15 @@ public ScaledBink(string name, PointF pos, SizeF size) : base(pos, size) #endregion + #region Finalizer + + /// + /// Finalizes an instance of the class. + /// + ~ScaledBink() => Dispose(); + + #endregion + #region Functions ///