mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +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;
|
||||
}
|
||||
|
||||
static void cleanupLobbyClient(CLobbyClient *lobbyClient)
|
||||
{
|
||||
delete lobbyClient;
|
||||
}
|
||||
|
||||
CSimulatorFs9Factory::CSimulatorFs9Factory(QObject *parent) :
|
||||
QObject(parent),
|
||||
m_fs9Host(new CFs9Host(this), cleanupFs9Host),
|
||||
m_lobbyClient(new CLobbyClient(this))
|
||||
m_lobbyClient(new CLobbyClient, cleanupLobbyClient)
|
||||
{
|
||||
registerMetadata();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user