Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 3244589

Browse files
committed
Fix dispose pattern
1 parent d5927bd commit 3244589

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/GitHub.VisualStudio/UI/Views/GitHubPaneViewModel.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,12 @@ protected override void Dispose(bool disposing)
294294
{
295295
if (disposing)
296296
{
297-
if (disposed)
298-
return;
299-
disposed = true;
300-
DisableButtons();
301-
disposables.Dispose();
297+
if (!disposed)
298+
{
299+
disposed = true;
300+
DisableButtons();
301+
disposables.Dispose();
302+
}
302303
}
303304
base.Dispose(disposing);
304305
}

0 commit comments

Comments
 (0)