Selaa lähdekoodia

Add missing event handler removal to plugin Dispose()

Lilith Song 3 vuotta sitten
vanhempi
sitoutus
f0b4c81017
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      HuntBuddy/Plugin.cs

+ 1 - 0
HuntBuddy/Plugin.cs

@@ -135,6 +135,7 @@ namespace HuntBuddy
 			}
 
 			this.MobHuntEntriesReady = false;
+			Plugin.ClientState.TerritoryChanged -= this.ClientStateOnTerritoryChanged;
 			Plugin.Framework.Update -= this.FrameworkOnUpdate;
 			Plugin.PluginInterface.UiBuilder.Draw -= this.DrawInterface;
 			Plugin.PluginInterface.UiBuilder.Draw -= this.pluginInterface.DrawLocalHunts;