Skip to content

Commit 1e51bdc

Browse files
committed
Unsubscribe from theme change event to prevent memory leaks
1 parent f0aa285 commit 1e51bdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,7 @@ protected virtual void Dispose(bool disposing)
11841184
_notifyIcon?.Dispose();
11851185
animationSoundWMP?.Close();
11861186
animationSoundWPF?.Dispose();
1187+
ModernWpf.ThemeManager.Current.ActualApplicationThemeChanged -= ThemeManager_ActualApplicationThemeChanged;
11871188
SystemEvents.PowerModeChanged -= SystemEvents_PowerModeChanged;
11881189
}
11891190

0 commit comments

Comments
 (0)