mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: null temp plugins after use
This commit is contained in:
parent
500bd926f8
commit
92b825104e
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ namespace Dalamud.Interface.Scratchpad
|
|||
if (existingScratch.Value != null)
|
||||
{
|
||||
existingScratch.Value.Dispose();
|
||||
this.loadedScratches.Remove(existingScratch.Key);
|
||||
this.loadedScratches[existingScratch.Key] = null;
|
||||
}
|
||||
|
||||
var code = doc.IsMacro ? this.MacroProcessor.Process(doc.Content) : doc.Content;
|
||||
|
|
@ -76,7 +76,7 @@ namespace Dalamud.Interface.Scratchpad
|
|||
|
||||
plugin.Initialize(pi);
|
||||
|
||||
this.loadedScratches.Add(doc.Id, plugin);
|
||||
this.loadedScratches[doc.Id] = plugin;
|
||||
return ScratchLoadStatus.Success;
|
||||
}
|
||||
catch (CompilationErrorException ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue