Skip to content

Commit

Permalink
perf: Fix NavigationView memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Jan 15, 2024
1 parent f794442 commit c1591c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4511,8 +4511,8 @@ private void OnUnloaded(object sender, RoutedEventArgs args)
var coreTitleBar = m_coreTitleBar;
if (coreTitleBar != null)
{
coreTitleBar.LayoutMetricsChanged += OnTitleBarMetricsChanged;
coreTitleBar.IsVisibleChanged += OnTitleBarIsVisibleChanged;
coreTitleBar.LayoutMetricsChanged -= OnTitleBarMetricsChanged;
coreTitleBar.IsVisibleChanged -= OnTitleBarIsVisibleChanged;
}
}

Expand Down

0 comments on commit c1591c1

Please sign in to comment.