mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Fix FS9 lobby connetion not being cleaned up properly
This commit is contained in:
@@ -33,6 +33,24 @@ namespace BlackSimPlugin
|
||||
|
||||
CLobbyClient::~CLobbyClient()
|
||||
{
|
||||
if (m_directPlayPeer)
|
||||
{
|
||||
m_directPlayPeer->Close(DPNCLOSE_IMMEDIATE);
|
||||
m_directPlayPeer->Release();
|
||||
}
|
||||
|
||||
if (m_deviceAddress)
|
||||
m_deviceAddress->Release();
|
||||
|
||||
if (m_hostAddress)
|
||||
m_hostAddress->Release();
|
||||
|
||||
if (m_dpLobbyClient)
|
||||
{
|
||||
m_dpLobbyClient->ReleaseApplication(DPLHANDLE_ALLCONNECTIONS, 0);
|
||||
m_dpLobbyClient->Close(0);
|
||||
}
|
||||
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user