Skip to content

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

Open
leolost2605 wants to merge 2 commits intomainfrom
leolost/fix-swipe-trigger-leak
Open

SwipeTrigger: don't hold strong reference on the actor#2823
leolost2605 wants to merge 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
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