aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;