summaryrefslogtreecommitdiff
path: root/protocols/MSN/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-04 15:32:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-04 15:32:42 +0000
commit85b8e59c6eaca1dd444789db06ffdd9582045c05 (patch)
tree6df7c9640e0da5378272b1e710fca47c0b99abc2 /protocols/MSN/src
parent8b8283c62cc5b8fce419fd7e0fe38c33f4457e17 (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@13999 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src')
-rw-r--r--protocols/MSN/src/msn_avatar.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/MSN/src/msn_avatar.cpp b/protocols/MSN/src/msn_avatar.cpp
index 943cd6f0ae..3e268e3b5b 100644
--- a/protocols/MSN/src/msn_avatar.cpp
+++ b/protocols/MSN/src/msn_avatar.cpp
@@ -119,11 +119,10 @@ void __cdecl CMsnProto::MSN_AvatarsThread(void*)
ProtoBroadcastAck(p->hContact, ACKTYPE_AVATAR, ACKRESULT_FAILED, 0, 0);
delete p;
}
- {
- mir_cslock lck(csAvatarQueue);
- while (lsAvatarQueue.getCount() > 0) {
- delete lsAvatarQueue[0];
- lsAvatarQueue.remove(0);
- }
+
+ mir_cslock lck(csAvatarQueue);
+ while (lsAvatarQueue.getCount() > 0) {
+ delete lsAvatarQueue[0];
+ lsAvatarQueue.remove(0);
}
}