Skip to content

Commit

Permalink
Merge pull request unoplatform#15065 from unoplatform/Youssef1313/nav…
Browse files Browse the repository at this point in the history
…view-mem-leak

perf: Fix NavigationView memory leak
  • Loading branch information
MartinZikmund authored Jan 15, 2024
2 parents e3ecbff + c1591c1 commit 75686ce
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 75686ce

Please sign in to comment.