Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SafeHandles #2127

Merged
merged 2 commits into from
Nov 21, 2024
Merged

Use SafeHandles #2127

merged 2 commits into from
Nov 21, 2024

Conversation

bording
Copy link
Member

@bording bording commented Nov 21, 2024

This PR changes Libgit2Object, which is the base class of all the handle classes, to derive from SafeHandleZeroOrMinusOneIsInvalid instead of manually implementing the clean up logic.

Fixes #2111

@bording bording marked this pull request as ready for review November 21, 2024 05:57
@bording bording merged commit a88e2a0 into master Nov 21, 2024
34 checks passed
@bording bording deleted the safehandles branch November 22, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider using SafeHandle in Libgit2Object instead of void*
1 participant