diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-26 11:09:34 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-26 11:09:34 +0900 |
commit | 979756e26af57e715efe64f8de8068243fa27e9f (patch) | |
tree | b343cfba18f1a69ccd934b7d060cdf2187ba70f3 /connection.cpp | |
parent | 4bb5f23d1b70136769a8df76907acb75aa824af9 (diff) | |
download | libquotient-979756e26af57e715efe64f8de8068243fa27e9f.tar.gz libquotient-979756e26af57e715efe64f8de8068243fa27e9f.zip |
Deal with memory more carefully
Plugs some memory leaks reported by Valgrind.
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp index 52fcc40b..7b72c592 100644 --- a/connection.cpp +++ b/connection.cpp @@ -599,7 +599,7 @@ Room* Connection::provideRoom(const QString& id, JoinState joinState) { qCDebug(MAIN) << "Deleting Invite state for room" << prevInvite->id(); emit aboutToDeleteRoom(prevInvite); - delete prevInvite; + prevInvite->deleteLater(); } } |