Fix leak in actionstest

This commit is contained in:
Tobias Fella
2026-01-26 00:10:46 +01:00
committed by Tobias Fella
parent fa4533e757
commit d64e22c270

View File

@@ -88,7 +88,7 @@ void ActionsTest::testActions()
QFETCH(std::optional<QString>, resultText);
QFETCH(std::optional<Quotient::RoomMessageEvent::MsgType>, type);
auto cache = new ChatBarCache();
auto cache = new ChatBarCache(this);
cache->setText(command);
auto result = ActionsModel::handleAction(room, cache);
QCOMPARE(resultText, std::get<std::optional<QString>>(result));