mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Issue #15 Fixed dangling pointer in CDBusServer
This commit is contained in:
@@ -232,6 +232,8 @@ namespace BlackMisc
|
||||
if (! object) { return; }
|
||||
m_objects.insert(path, object); // will be registered when P2P connection is established
|
||||
|
||||
QObject::connect(object, &QObject::destroyed, this, [this, path] { m_objects.remove(path); });
|
||||
|
||||
switch (m_serverMode)
|
||||
{
|
||||
case SERVERMODE_SESSIONBUS:
|
||||
|
||||
Reference in New Issue
Block a user