Skip to content
Snippets Groups Projects
Commit d9282696 authored by FearlessTobi's avatar FearlessTobi
Browse files

core/bsd: Correctly unbind methods in destructor

Prevents yuzu from crashing when the BSD service is created a second time.
parent e431cb8d
No related branches found
No related tags found
No related merge requests found
......@@ -933,7 +933,11 @@ BSD::BSD(Core::System& system_, const char* name)
}
}
BSD::~BSD() = default;
BSD::~BSD() {
if (auto room_member = room_network.GetRoomMember().lock()) {
room_member->Unbind(proxy_packet_received);
}
}
BSDCFG::BSDCFG(Core::System& system_) : ServiceFramework{system_, "bsdcfg"} {
// clang-format off
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment