Skip to content

Fix #4029: Use shared pointer in CClientDisplay(Manager) #4108

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

Merged
merged 2 commits into from
Mar 16, 2025

Conversation

Lpsd
Copy link
Member

@Lpsd Lpsd commented Mar 15, 2025

A proper solution, where the CClientDisplayManager is used to create & return shared pointers which are also stored as weak pointers in a list.

Also removes the unused expiration functionality on display instances, which was part of the previous (crappy) solution.

Resolves #4029

@Lpsd Lpsd changed the title Fix #4029: Use smart pointers in CClientDisplay(Manager) Fix #4029: Use shared pointer in CClientDisplay(Manager) Mar 15, 2025
@Dutchman101
Copy link
Member

Thanks, this will be tested in nightly

@Dutchman101 Dutchman101 merged commit 0df0a4b into multitheftauto:master Mar 16, 2025
6 checks passed
MTABot pushed a commit that referenced this pull request Mar 16, 2025
0df0a4b Fix #4029: Use shared pointer in CClientDisplay(Manager) (#4108)
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.

Hard-hitting crash in CClientDisplayManager::RemoveFromList
2 participants