Skip to content

instance: Annotate flatpak_instance_get_all as (transfer container) - #6696

Merged
swick merged 1 commit into
mainfrom
bbhtt/inst-annot
Jun 15, 2026
Merged

swick merged 1 commit into
mainfrom
bbhtt/inst-annot

Conversation

@bbhtt

@bbhtt bbhtt commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Fixes: #6666

Annotating the return as (transfer full) causes bindings to additionally
unref each element on array free, resulting in a use-after-free.

Change the annotation to (transfer container) so bindings know to unref
the array only.

Fixes: #6666
@swick
swick added this pull request to the merge queue Jun 15, 2026
Merged via the queue into main with commit 69bf837 Jun 15, 2026
11 checks passed
@swick
swick deleted the bbhtt/inst-annot branch June 15, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: FlatpakInstance functions segfault when called via GObject

2 participants