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

Common/TraversalClient: Use correct deleter with g_MainNetHost #11773

Merged
merged 1 commit into from Apr 20, 2023

Conversation

lioncash
Copy link
Member

Previously this was using the default deleter (which just calls delete on the pointer), which is incorrect, since the ENetHost instance is allocated through ENet's C API, so we need to use its functions to deallocate the host instead.

@lioncash lioncash force-pushed the delete branch 2 times, most recently from 3750161 to 36091f7 Compare April 19, 2023 16:32
Previously this was using the default deleter (which just calls delete
on the pointer), which is incorrect, since the ENetHost instance is
allocated through ENet's C API, so we need to use its functions to
deallocate the host instead.
@AdmiralCurtiss
Copy link
Contributor

Surprised this hasn't blown up before...

@AdmiralCurtiss AdmiralCurtiss merged commit be1f2a6 into dolphin-emu:master Apr 20, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants