summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_proto.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp
index 8cc92b3f96..16efe23929 100644
--- a/protocols/IcqOscarJ/src/icq_proto.cpp
+++ b/protocols/IcqOscarJ/src/icq_proto.cpp
@@ -208,8 +208,8 @@ CIcqProto::~CIcqProto()
SAFE_FREE((void**)&servlistQueueList);
// Finalize avatars
- for (int i = 0; i < m_arAvatars.getCount(); i++)
- delete m_arAvatars[i];
+ for (auto &it : m_arAvatars)
+ delete it;
// NetLib clean-up
Netlib_CloseHandle(m_hDirectNetlibUser);