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

Fixed bugs in the MemoryCleaner class #153

Merged
merged 3 commits into from
Nov 20, 2024
Merged

Fixed bugs in the MemoryCleaner class #153

merged 3 commits into from
Nov 20, 2024

Conversation

jwharm
Copy link
Owner

@jwharm jwharm commented Nov 18, 2024

Removed the reference counter field because there can always be only one single instance that has ownership.

Clarified the javadoc comments and improved some formatting.

Moved the call to g_free() down, below the calls to g_boxed_free() and the specialized free-function, to make it more clear that it is a fallback case.

Removed the `reference` counter field because there can always be only one single instance that has ownership.

Clarified the javadoc comments and improved some formatting.

Moved the call to `g_free()` down, below the calls to `g_boxed_free()` and the specialized free-function, to make it more clear that it is a fallback case.
The GLib testcases are now in the package that corresponds to the functionality under test (io.github.jwharm.javagi.interop).
@jwharm jwharm merged commit b243f0c into main Nov 20, 2024
@jwharm jwharm deleted the memory-cleaner-fixes branch November 20, 2024 21:10
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.

1 participant