diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-07 16:20:20 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-07 16:20:20 +0900 |
commit | 14302ddbac1e6d9c95de15c97362c3de09f545eb (patch) | |
tree | ce55d67815b1081a8c942fb6432134e056c4dd6c /connection.cpp | |
parent | ab45e1aee912cf242caea2d762b2b27c83a0e972 (diff) | |
download | libquotient-14302ddbac1e6d9c95de15c97362c3de09f545eb.tar.gz libquotient-14302ddbac1e6d9c95de15c97362c3de09f545eb.zip |
Fixed massive leaks of Event objects
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 3 |
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); |