mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 08:59:17 +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)
|
if (this.instance == null)
|
||||||
{
|
{
|
||||||
this.State = PluginState.LoadError;
|
this.State = PluginState.LoadError;
|
||||||
|
this.DalamudInterface.Dispose();
|
||||||
Log.Error($"Error while loading {this.Name}, failed to bind and call the plugin constructor");
|
Log.Error($"Error while loading {this.Name}, failed to bind and call the plugin constructor");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue