summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/mir_contactqueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx/src/mir_contactqueue.cpp')
-rw-r--r--plugins/UserInfoEx/src/mir_contactqueue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UserInfoEx/src/mir_contactqueue.cpp b/plugins/UserInfoEx/src/mir_contactqueue.cpp
index c9f22502b3..9a734ba968 100644
--- a/plugins/UserInfoEx/src/mir_contactqueue.cpp
+++ b/plugins/UserInfoEx/src/mir_contactqueue.cpp
@@ -51,8 +51,8 @@ CContactQueue::~CContactQueue()
for (int count = 0; _status != STOPPED && ++count < 50;)
Sleep(10);
- for (int i = 0; i < _queue.getCount(); i++)
- mir_free(_queue[i]);
+ for (auto &it : _queue)
+ mir_free(it);
CloseHandle(_hEvent);
}