aboutsummaryrefslogtreecommitdiff
path: root/connection.cpp
diff options
context:
space:
mode:
authorFelix Rohrbach <fxrh@gmx.de>2016-10-11 23:19:39 +0200
committerGitHub <noreply@github.com>2016-10-11 23:19:39 +0200
commit45f38a1d6687d1ceaca87a6d6d94ac2515debb02 (patch)
treeb8c783c118b674d11d75256c2317803644473f99 /connection.cpp
parent7b0de25eaea285385a7e46183b487a7c7d1fdecd (diff)
parent29bff90ecb0d1febfa8728383195f0f41c9a29ef (diff)
downloadlibquotient-45f38a1d6687d1ceaca87a6d6d94ac2515debb02.tar.gz
libquotient-45f38a1d6687d1ceaca87a6d6d94ac2515debb02.zip
Merge pull request #32 from Fxrh/kitsune-memory-care
Event objects leaks plugged
Diffstat (limited to 'connection.cpp')
-rw-r--r--connection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/connection.cpp b/connection.cpp
index 9f56ec96..bc6d1f26 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -18,7 +18,6 @@
#include "connection.h"
#include "connectiondata.h"
-//#include "connectionprivate.h"
#include "user.h"
#include "events/event.h"
#include "room.h"
@@ -172,7 +171,7 @@ void Connection::sync(int timeout)
auto job = d->startSyncJob(filter, timeout);
connect( job, &SyncJob::success, [=] () {
d->data->setLastEvent(job->nextBatch());
- for( const auto& roomData: job->roomData() )
+ for( auto& roomData: job->roomData() )
{
if ( Room* r = provideRoom(roomData.roomId) )
r->updateData(roomData);