Handle functions with multiple callbacks #367
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi!367
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "notified-scope"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some functions have multiple callbacks with notified or async scope, but one of them has no DestroyNotify argument of its own. Java-GI used to allocate these in a global arena, leaking the allocated memory. To fix this, we now use the same arena for both callback allocations.
This also fixes the detection of DestroyNotify parameters, which means some function signatures have improved.
Also added a metadata fix for
g_file_move_asyncto properly annotate theprogress_callbackscope.Fixes #366