Skip to content

inputcapture: Fix invalid free of call-related data#217

Merged
GeorgesStavracas merged 1 commit intoflatpak:mainfrom
whot:wip/inputcapture-call
Mar 26, 2026
Merged

inputcapture: Fix invalid free of call-related data#217
GeorgesStavracas merged 1 commit intoflatpak:mainfrom
whot:wip/inputcapture-call

Conversation

@whot
Copy link
Copy Markdown
Contributor

@whot whot commented Mar 26, 2026

Our Call has a ref to the task but the task has a ref to our call. When we g_clear_object (&call->task) and it's the last ref to the task, we end up freeing the Call from underneath us.

Make sure the task is the last thing freed.

Related: 0647ff5 ("inputcapture: Reference-count Call instances")

Our Call has a ref to the task but the task has a ref to our call. When
we g_clear_object (&call->task) and it's the last ref to the task, we
end up freeing the Call from underneath us.

Make sure the task is the last thing freed.

Related: 0647ff5 ("inputcapture: Reference-count Call instances")
@GeorgesStavracas GeorgesStavracas merged commit 30fe700 into flatpak:main Mar 26, 2026
15 checks passed
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.

2 participants