From 3573e115ffd6550ce85ae76610c5367b39724c04 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 7 Oct 2016 16:22:15 +0900 Subject: Fixed leaks of RoomMessageEvent content --- events/roommessageevent.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'events/roommessageevent.cpp') 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; -- cgit v1.2.3