diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-07 16:22:15 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-07 16:22:15 +0900 |
commit | 3573e115ffd6550ce85ae76610c5367b39724c04 (patch) | |
tree | d33b7478d7e51581d2d0caf812920a563da5c5e4 /events/roommessageevent.cpp | |
parent | bd3bb07a7f76964a3550df2e72541ece53a4bce7 (diff) | |
download | libquotient-3573e115ffd6550ce85ae76610c5367b39724c04.tar.gz libquotient-3573e115ffd6550ce85ae76610c5367b39724c04.zip |
Fixed leaks of RoomMessageEvent content
Diffstat (limited to 'events/roommessageevent.cpp')
-rw-r--r-- | events/roommessageevent.cpp | 1 |
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; |