2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #9148 from liamwhite/crab-language-at-home

k_server_session: fix crashes
This commit is contained in:
bunnei 2022-10-29 21:03:53 -07:00 committed by GitHub
commit 316a2c1715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -91,7 +91,7 @@ private:
/// List of threads which are pending a reply. /// List of threads which are pending a reply.
boost::intrusive::list<KSessionRequest> m_request_list; boost::intrusive::list<KSessionRequest> m_request_list;
KSessionRequest* m_current_request; KSessionRequest* m_current_request{};
KLightLock m_lock; KLightLock m_lock;
}; };

View file

@ -80,7 +80,6 @@ ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name
} }
auto* port = Kernel::KPort::Create(kernel); auto* port = Kernel::KPort::Create(kernel);
SCOPE_EXIT({ port->Close(); });
port->Initialize(ServerSessionCountMax, false, name); port->Initialize(ServerSessionCountMax, false, name);
auto handler = it->second; auto handler = it->second;