aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-17 17:44:56 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-17 17:44:56 +0900
commit936feeedaeda390004d9026ce23324becbcd2c93 (patch)
tree808198dd5e0768edf61e35b5c68bc43c092466a0 /room.cpp
parent0f43e74bcf06b2b09018d564a73aa931098eb790 (diff)
downloadlibquotient-936feeedaeda390004d9026ce23324becbcd2c93.tar.gz
libquotient-936feeedaeda390004d9026ce23324becbcd2c93.zip
Fix an occasional crash introduced by the previous commit
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/room.cpp b/room.cpp
index 8ab5b7f5..6b7484e9 100644
--- a/room.cpp
+++ b/room.cpp
@@ -63,7 +63,7 @@ class Room::Private
Private(Connection* c, QString id_, JoinState initialJoinState)
: q(nullptr), connection(c), id(std::move(id_))
, avatar(c), joinState(initialJoinState), unreadMessages(false)
- , highlightCount(0), notificationCount(0), roomMessagesJob(nullptr)
+ , highlightCount(0), notificationCount(0)
{ }
Room* q;
@@ -92,7 +92,7 @@ class Room::Private
QList<User*> membersLeft;
QHash<const User*, QString> lastReadEventIds;
QString prevBatch;
- RoomMessagesJob* roomMessagesJob;
+ QPointer<RoomMessagesJob> roomMessagesJob;
struct FileTransferPrivateInfo
{