Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid double ownership #800

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

tobiolo
Copy link
Collaborator

@tobiolo tobiolo commented Jan 11, 2025

Thanks @aardappel for your explanation and your fix! This seems to be a very subtle issue. I tried to understand the mechanics here and suggest following fix to avoid the double ownership of c and rootgrid.get().

@tobiolo tobiolo requested a review from aardappel January 11, 2025 09:24
@tobiolo tobiolo force-pushed the avoid-double-ownership branch from 42394ce to 7f31052 Compare January 12, 2025 17:29
@tobiolo tobiolo merged commit 89b40de into aardappel:master Jan 13, 2025
0 of 4 checks passed
@tobiolo tobiolo deleted the avoid-double-ownership branch January 13, 2025 16:28
tobiolo added a commit to tobiolo/treesheets that referenced this pull request Jan 16, 2025
tobiolo added a commit that referenced this pull request Jan 16, 2025
* Revert "Avoid double ownership (#800)"

This reverts commit 89b40de.

* Revert "Fix bad unique_ptr usage"

This reverts commit 2086ce8.

* Revert "Use correct method to delete resource (#783)"

This reverts commit 81e74a0.

* Revert "Use unique_ptr for Grid in Cell (#782)"

This reverts commit 9fe088a.

* Revert "Make rootgrid an unique_ptr (#776)"

This reverts commit 15d5f58.

* Revert "Use vector instead of raw pointer arrays (#785)"

This reverts commit 9dfc4fb.

* Revert "Use unique_ptr for Document in TSCanvas (#780)"

This reverts commit e3d4602.
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