Procházet zdrojové kódy

Add missing event handler removal to plugin Dispose()

Lilith Song před 3 roky
rodič
revize
f0b4c81017
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;