diff --git a/src/gui/systray.mm b/src/gui/systray.mm index 505d18ec9955a..707e3269fd429 100644 --- a/src/gui/systray.mm +++ b/src/gui/systray.mm @@ -58,8 +58,8 @@ void sendTalkReply(UNNotificationResponse *response, UNNotificationContent* cont << "Token:" << qToken << "Account:" << qAccount; - const auto talkReply = QSharedPointer::create( - accountState.data(), OCC::Systray::instance()); + // OCC::TalkReply deletes itself once it's done, fire and forget + const auto talkReply = new OCC::TalkReply(accountState.data(), OCC::Systray::instance()); talkReply->sendReplyMessage(qToken, qReply, qReplyTo); }