diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-13 21:08:07 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-13 21:08:07 -0400 |
commit | aa7b0caf4656d65ee156c3cf5ea786f561b850bb (patch) | |
tree | bf4f3336fa72332974251082a0fa9af6f828d73d | |
parent | 7c411b29bbe1323145d130eb8771c67617b6d3ee (diff) | |
download | SMAPI-aa7b0caf4656d65ee156c3cf5ea786f561b850bb.tar.gz SMAPI-aa7b0caf4656d65ee156c3cf5ea786f561b850bb.tar.bz2 SMAPI-aa7b0caf4656d65ee156c3cf5ea786f561b850bb.zip |
fix helpers not disposed if the mod is finalized
-rw-r--r-- | src/SMAPI/Mod.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI/Mod.cs b/src/SMAPI/Mod.cs index cffe2998..f764752b 100644 --- a/src/SMAPI/Mod.cs +++ b/src/SMAPI/Mod.cs @@ -49,6 +49,7 @@ namespace StardewModdingAPI /// <summary>Destruct the instance.</summary> ~Mod() { + (this.Helper as IDisposable)?.Dispose(); // deliberately do this outside overridable dispose method so mods don't accidentally suppress it this.Dispose(false); } } |