From 20e2d098ef19151a3796c59a2c9bc03d0e228791 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 8 Jun 2021 00:32:07 +0200 Subject: [PATCH] suppress finalize for manually disposed panels --- MLEM.Ui/Elements/Panel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MLEM.Ui/Elements/Panel.cs b/MLEM.Ui/Elements/Panel.cs index a9633fb..ed14aa5 100644 --- a/MLEM.Ui/Elements/Panel.cs +++ b/MLEM.Ui/Elements/Panel.cs @@ -241,6 +241,7 @@ namespace MLEM.Ui.Elements { this.renderTarget.Dispose(); this.renderTarget = null; } + GC.SuppressFinalize(this); } }