Skip to content

Commit

Permalink
Fix macOS notification talk replies by avoiding early dealloc
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra authored and backportbot-nextcloud[bot] committed Sep 7, 2023
1 parent c83e51a commit 5ea644d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/systray.mm
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void sendTalkReply(UNNotificationResponse *response, UNNotificationContent* cont
<< "Token:" << qToken
<< "Account:" << qAccount;

const auto talkReply = QSharedPointer<OCC::TalkReply>::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);
}

Expand Down

0 comments on commit 5ea644d

Please sign in to comment.