8000 Revert "Remove useless GC.SuppressFinalize()" · MicrosoftWebMatrix/libgit2sharp@46a5c17 · GitHub
[go: up one dir, main page]

Skip to content

Commit 46a5c17

Browse files
committed
Revert "Remove useless GC.SuppressFinalize()"
This reverts commit d03bcb9. cf. http://msdn.microsoft.com/en-us/library/ms182269.aspx
1 parent 3e65630 commit 46a5c17

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

LibGit2Sharp/Core/ObjectSafeWrapper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public GitObjectSafeHandle ObjectPtr
3030
public void Dispose()
3131
{
3232
Dispose(true);
33+
GC.SuppressFinalize(this);
3334
}
3435

3536
private void Dispose(bool disposing)

LibGit2Sharp/Repository.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ public NoteCollection Notes
333333
public void Dispose()
334334
{
335335
Dispose(true);
336+
GC.SuppressFinalize(this);
336337
}
337338

338339
/// <summary>

0 commit comments

Comments
 (0)
0