From 85b8e59c6eaca1dd444789db06ffdd9582045c05 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2015 15:32:42 +0000 Subject: minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@13999 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_avatar.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'protocols/MSN') 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); } } -- cgit v1.2.3