From: Claudio Cambra Date: Thu, 7 Sep 2023 06:28:47 +0000 (+0800) Subject: Fix macOS notification talk replies by avoiding early dealloc X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~9^2~11^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5ea644d220dc47821d47d978f3b521b5b4d17b29;p=nextcloud-desktop.git Fix macOS notification talk replies by avoiding early dealloc Signed-off-by: Claudio Cambra --- diff --git a/src/gui/systray.mm b/src/gui/systray.mm index 505d18ec9..707e3269f 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); }