mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 16:25:54 +08:00
Fix double deletion of CLobbyClient during shutdown
This commit is contained in:
committed by
Klaus Basan
parent
1051cc5751
commit
84248fc1b0
@@ -537,10 +537,15 @@ namespace BlackSimPlugin
|
|||||||
delete host;
|
delete host;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void cleanupLobbyClient(CLobbyClient *lobbyClient)
|
||||||
|
{
|
||||||
|
delete lobbyClient;
|
||||||
|
}
|
||||||
|
|
||||||
CSimulatorFs9Factory::CSimulatorFs9Factory(QObject *parent) :
|
CSimulatorFs9Factory::CSimulatorFs9Factory(QObject *parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
m_fs9Host(new CFs9Host(this), cleanupFs9Host),
|
m_fs9Host(new CFs9Host(this), cleanupFs9Host),
|
||||||
m_lobbyClient(new CLobbyClient(this))
|
m_lobbyClient(new CLobbyClient, cleanupLobbyClient)
|
||||||
{
|
{
|
||||||
registerMetadata();
|
registerMetadata();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user