Skip to content

Commit

Permalink
Address Analyze CA1063
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhardol committed Feb 13, 2017
1 parent 3802a21 commit d3a9680
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion UI/Activity/ActivityDetailPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,16 @@ private void OnPropertyChanged(string propertyName)

public void Dispose()
{
this.m_control.Dispose();
Dispose(true);
GC.SuppressFinalize(this);
}

protected virtual void Dispose(bool disposing)
{
if (disposing)
{
this.m_control.Dispose();
}
}
}
}
11 changes: 10 additions & 1 deletion UI/Settings/SettingsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,16 @@ public void RefreshPage() {

public void Dispose()
{
this.m_control.Dispose();
Dispose(true);
GC.SuppressFinalize(this);
}

protected virtual void Dispose(bool disposing)
{
if (disposing)
{
this.m_control.Dispose();
}
}
}
}

0 comments on commit d3a9680

Please sign in to comment.