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

fix: dangling raw_ptr in OSRWHV destructor #41117

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Jan 25, 2024

Backport of #41088

See that PR for details.

Notes: none

`delegated_frame_host_` holds a pointer to `delegated_frame_host_client_`.
Since `delegated_frame_host_client_` was being destroyed first, that
pointer was dangling in the OSRWHV destructor.

Also, make these two unique_ptr fields `const` since they point to the
same objects for the lifespan of the OSRWHV.

Co-authored-by: Charles Kerr <charles@charleskerr.com>
@trop trop bot requested a review from ckerr January 25, 2024 01:16
@trop trop bot mentioned this pull request Jan 25, 2024
3 tasks
@trop trop bot added 29-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jan 25, 2024
@zcbenz zcbenz merged commit 370a2c7 into 29-x-y Jan 25, 2024
20 checks passed
@zcbenz zcbenz deleted the trop/29-x-y-bp-fix-dangling-raw_ptr-in-osrwhv-destructor-1706145349001 branch January 25, 2024 06:45
Copy link

release-clerk bot commented Jan 25, 2024

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
29-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant