Fix memory leaks

This commit is contained in:
Tobias Fella
2026-01-25 22:58:06 +01:00
committed by Tobias Fella
parent 7313386903
commit 6dce1564b7
6 changed files with 122 additions and 118 deletions

View File

@@ -93,8 +93,6 @@ std::optional<std::reference_wrapper<const Quotient::RoomEvent>> MessageModel::g
return std::nullopt;
}
static NeochatRoomMember *emptyNeochatRoomMember = new NeochatRoomMember;
QVariant MessageModel::data(const QModelIndex &idx, int role) const
{
if (!checkIndex(idx, QAbstractItemModel::CheckIndexOption::IndexIsValid)) {