Skip to content

SwipeTrigger: don't hold strong reference on the actor#2823

Merged
leolost2605 merged 2 commits intomainfrom
leolost/fix-swipe-trigger-leak
Apr 28, 2026
Merged

SwipeTrigger: don't hold strong reference on the actor#2823
leolost2605 merged 2 commits intomainfrom
leolost/fix-swipe-trigger-leak

Conversation

@leolost2605
Copy link
Copy Markdown
Member

Same as #2806 but uses Object.add_weak_pointer which is a built in way to achieve the same that was done there with manual weak_ref/unref.
This also adds a test for the lifetime of the swipe trigger and to make sure we don't crash when the actor was already finalized.

Closes #2806

@leolost2605 leolost2605 requested a review from a team April 22, 2026 14:00
@leolost2605 leolost2605 force-pushed the leolost/fix-swipe-trigger-leak branch from a9514db to 24c34e9 Compare April 28, 2026 08:03
@leolost2605 leolost2605 merged commit 11ad1cc into main Apr 28, 2026
6 checks passed
@leolost2605 leolost2605 deleted the leolost/fix-swipe-trigger-leak branch April 28, 2026 08: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.

2 participants