Skip to content

Set ownership for TLegend header in cmsstyle.py#78

Merged
ttedeschi merged 1 commit into
cms-cat:masterfrom
ttedeschi:fix_640_ownership
May 28, 2026
Merged

Set ownership for TLegend header in cmsstyle.py#78
ttedeschi merged 1 commit into
cms-cat:masterfrom
ttedeschi:fix_640_ownership

Conversation

@ttedeschi
Copy link
Copy Markdown
Contributor

@ttedeschi ttedeschi commented May 28, 2026

Prevent Python garbage collection from deleting TLegend header. This PR addresses issue #77, which is caused by a new ownership behavior introduced in ROOT v6.40 https://root.cern.ch/doc/v640/release-notes.html#change-in-memory-ownership-heuristics. The fix was suggested by @aapo-kossi.

Prevent Python garbage collection from deleting TLegend header.
@ttedeschi ttedeschi merged commit ecfed5a into cms-cat:master May 28, 2026
2 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.

1 participant