Issue #15 Fixed dangling pointer in CDBusServer

This commit is contained in:
Mat Sutcliffe
2020-07-31 00:44:09 +01:00
parent ee4e41d0a6
commit 538421b0b7

View File

@@ -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: