fix: fix memory leaks

This commit is contained in:
Иванов Иван
2024-08-21 22:39:22 +02:00
parent 4e2e108076
commit 914f6ba20f
9 changed files with 80 additions and 8 deletions

View File

@ -105,6 +105,7 @@ namespace Client.Application.ViewModels
}
else if (target != null && hero.Target == null)
{
target.UnsubscribeAll();
target = null;
OnPropertyChanged("Target");
}