8000 Unregister handle from finalizer either Dispose · jbialobr/libgit2sharp@3715ec2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3715ec2

Browse files
committed
Unregister handle from finalizer either Dispose
1 parent 3e4cb0f commit 3715ec2

17 files changed

+38
-66
lines changed

LibGit2Sharp/Core/Handles/ConfigurationSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
10000
@@ -2,7 +2,7 @@
22
{
33
internal class ConfigurationSafeHandle : SafeHandleBase
44
{
5-
protected override bool ReleaseHandleImpl()
5+
protected override bool ReleaseHandle()
66
{
77
Proxy.git_config_free(handle);
88
return true;

LibGit2Sharp/Core/Handles/DiffListSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace LibGit2Sharp.Core.Handles
22
{
33
internal class DiffListSafeHandle : SafeHandleBase
44
{
5-
protected override bool ReleaseHandleImpl()
5+
protected override bool ReleaseHandle()
66
{
77
Proxy.git_diff_list_free(handle);
88
return true;

LibGit2Sharp/Core/Handles/GitObjectSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
internal class GitObjectSafeHandle : SafeHandleBase
44
{
5-
protected override bool ReleaseHandleImpl()
5+
protected override bool ReleaseHandle()
66
{
77
Proxy.git_object_free(handle);
88
return true;

LibGit2Sharp/Core/Handles/IndexSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
internal class IndexSafeHandle : SafeHandleBase
44
{
5-
protected override bool ReleaseHandleImpl()
5+
protected override bool ReleaseHandle()
66
{
77
Proxy.git_index_free(handle);
88
return true;

LibGit2Sharp/Core/Handles/NoteSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
internal class NoteSafeHandle : SafeHandleBase
44
{
5-
protected override bool ReleaseHandleImpl()
5+
protected override bool ReleaseHandle()
66
{
77
Proxy.git_note_free(handle);
88
return true;

LibGit2Sharp/Core/Handles/NullGitObjectSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public NullGitObjectSafeHandle()
99
handle = IntPtr.Zero;
1010
}
1111

12-
protected override bool ReleaseHandleImpl()
12+
protected override bool ReleaseHandle()
1313
{
1414
// Nothing to release
1515
return true;

LibGit2Sharp/Core/Handles/NullIndexSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public NullIndexSafeHandle()
99
handle = IntPtr.Zero;
1010
}
1111

12-
protected override bool ReleaseHandleImpl()
12+
protected override bool ReleaseHandle()
1313
{
1414
// Nothing to release
1515
return true;

LibGit2Sharp/Core/Handles/ObjectDatabaseSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
internal class ObjectDatabaseSafeHandle : SafeHandleBase
44
{
5-
protected override bool ReleaseHandleImpl()
5+
protected override bool ReleaseHandle()
66
{
77
Proxy.git_odb_free(handle);
88
return true;

LibGit2Sharp/Core/Handles/PushSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
internal class PushSafeHandle : SafeHandleBase
44
{
5-
protected override bool ReleaseHandleImpl()
5+
protected override bool ReleaseHandle()
66
{
77
Proxy.git_push_free(handle);
88
return true;

LibGit2Sharp/Core/Handles/ReferenceSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
internal class ReferenceSafeHandle : SafeHandleBase
44
{
5-
protected override bool ReleaseHandleImpl()
5+
protected override bool ReleaseHandle()
66
{
77
Proxy.git_reference_free(handle);
88
return true;

0 commit comments

Comments
 (0)
0