Nullify Scoped Service Delegates

This commit is contained in:
MidoriKami 2023-09-19 23:43:45 -07:00
parent b0986a5225
commit c305c01dfd
9 changed files with 27 additions and 1 deletions

View file

@ -156,6 +156,8 @@ internal class PartyFinderGuiPluginScoped : IDisposable, IServiceType, IPartyFin
public void Dispose()
{
this.partyFinderGuiService.ReceiveListing -= this.ReceiveListingForward;
this.ReceiveListing = null;
}
private void ReceiveListingForward(PartyFinderListing listing, PartyFinderListingEventArgs args) => this.ReceiveListing?.Invoke(listing, args);