[AdvancedPaste]Fix NullReferenceException on Dispose (#36428)
[AdvancedPaste] Fixed NullReferenceException on Dispose
This commit is contained in:
Родитель
e77ea96a14
Коммит
799f7396d2
|
@ -263,7 +263,7 @@ namespace AdvancedPaste
|
|||
if (disposing)
|
||||
{
|
||||
EtwTrace?.Dispose();
|
||||
window.Dispose();
|
||||
window?.Dispose();
|
||||
}
|
||||
|
||||
disposedValue = true;
|
||||
|
|
|
@ -154,8 +154,8 @@ namespace AdvancedPaste.Settings
|
|||
{
|
||||
if (disposing)
|
||||
{
|
||||
_cancellationTokenSource.Dispose();
|
||||
_watcher.Dispose();
|
||||
_cancellationTokenSource?.Dispose();
|
||||
_watcher?.Dispose();
|
||||
}
|
||||
|
||||
_disposedValue = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче