mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
fix: dispose DalamudPluginInterface if plugin init fails
This commit is contained in:
parent
49345847a5
commit
c0901e11ba
1 changed files with 1 additions and 0 deletions
|
|
@ -288,6 +288,7 @@ namespace Dalamud.Plugin.Internal
|
|||
if (this.instance == null)
|
||||
{
|
||||
this.State = PluginState.LoadError;
|
||||
this.DalamudInterface.Dispose();
|
||||
Log.Error($"Error while loading {this.Name}, failed to bind and call the plugin constructor");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue