Skip to content

Fix BGridView holder ownership - #22

Open
cyberman wants to merge 1 commit into
coolcoder613eb:mainfrom
Be-Quiet-Home:fix-bgridview-holder-ownership
Open

Fix BGridView holder ownership#22
cyberman wants to merge 1 commit into
coolcoder613eb:mainfrom
Be-Quiet-Home:fix-bgridview-holder-ownership

Conversation

@cyberman

@cyberman cyberman commented Jul 28, 2026

Copy link
Copy Markdown

Problem

An attached BGridView is owned and destroyed by its BWindow, while the Python wrapper still retains deletion responsibility.

Releasing the wrapper can therefore attempt a second deletion during finalization.

Fix

Bind BGridView with a py::nodelete holder.

Validation

Verified that window shutdown and Python finalization complete cleanly for an attached BGridView.

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