mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 00:44:55 -06:00
fix memory leak
This commit is contained in:
parent
8f6da08256
commit
2c92f69100
@ -113,6 +113,11 @@ public sealed partial class OOBEWindow : WindowEx, IDisposable
|
|||||||
msgMonitor?.Dispose();
|
msgMonitor?.Dispose();
|
||||||
settings.ColorValuesChanged -= Settings_ColorValuesChanged;
|
settings.ColorValuesChanged -= Settings_ColorValuesChanged;
|
||||||
this.Activated -= OnWindowActivated;
|
this.Activated -= OnWindowActivated;
|
||||||
|
if (this.Content is Microsoft.UI.Xaml.Controls.Page page)
|
||||||
|
{
|
||||||
|
page.KeyboardAccelerators.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
disposedValue = true;
|
disposedValue = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user