aboutsummaryrefslogtreecommitdiff
path: root/events/roommessageevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-10-07 16:22:15 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-10-07 16:22:15 +0900
commit3573e115ffd6550ce85ae76610c5367b39724c04 (patch)
treed33b7478d7e51581d2d0caf812920a563da5c5e4 /events/roommessageevent.cpp
parentbd3bb07a7f76964a3550df2e72541ece53a4bce7 (diff)
downloadlibquotient-3573e115ffd6550ce85ae76610c5367b39724c04.tar.gz
libquotient-3573e115ffd6550ce85ae76610c5367b39724c04.zip
Fixed leaks of RoomMessageEvent content
Diffstat (limited to 'events/roommessageevent.cpp')
-rw-r--r--events/roommessageevent.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/events/roommessageevent.cpp b/events/roommessageevent.cpp
index d6166dad..76152102 100644
--- a/events/roommessageevent.cpp
+++ b/events/roommessageevent.cpp
@@ -28,6 +28,7 @@ class RoomMessageEvent::Private
{
public:
Private() : msgtype(MessageEventType::Unknown), content(nullptr) {}
+ ~Private() { if (content) delete content; }
QString userId;
MessageEventType msgtype;