Skip to content

Commit c0a48be

Browse files
committed
Fix Release Notes WebView not being disposed (fix #3648)
1 parent d4c8a42 commit c0a48be

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/UniGetUI/Pages/DialogPages/DialogHelper_Generic.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ public static async void ShowReleaseNotes()
383383
notes.Close += (_, _) => NotesDialog.Hide();
384384
NotesDialog.Content = notes;
385385
await Window.ShowDialogAsync(NotesDialog);
386+
notes.Dispose();
386387
}
387388

388389
public static async void HandleBrokenWinGet()

src/UniGetUI/Pages/DialogPages/ReleaseNotes.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace UniGetUI.Interface.Dialogs
1010
/// <summary>
1111
/// An empty page that can be used on its own or navigated to within a Frame.
1212
/// </summary>
13-
public sealed partial class ReleaseNotes : Page
13+
public sealed partial class ReleaseNotes : Page, IDisposable
1414
{
1515

1616
public event EventHandler<EventArgs>? Close;

0 commit comments

Comments
 (0)