mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
dtr: null-check storage when removing
This commit is contained in:
parent
30581d534a
commit
4df124440e
1 changed files with 6 additions and 2 deletions
|
|
@ -146,8 +146,12 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar
|
|||
internal void RemoveEntry(DtrBarEntry toRemove)
|
||||
{
|
||||
this.RemoveNode(toRemove.TextNode);
|
||||
toRemove.Storage->Dtor(true);
|
||||
toRemove.Storage = null;
|
||||
|
||||
if (toRemove.Storage != null)
|
||||
{
|
||||
toRemove.Storage->Dtor(true);
|
||||
toRemove.Storage = null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue