summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-28 22:03:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-28 22:03:37 +0000
commitd9bcb8029e8ac6b1ddee53908419d47d08a0d6a7 (patch)
treef15bb5782c6861a8a6a96644b6ab1d51a6aa1628 /protocols/SkypeClassic
parent0392fb947b5b95e4595ab9508d01a795a2b0e057 (diff)
- compilation fix;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@11140 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic')
-rw-r--r--protocols/SkypeClassic/src/gchat.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/protocols/SkypeClassic/src/gchat.cpp b/protocols/SkypeClassic/src/gchat.cpp
index 02046beeca..37e075544e 100644
--- a/protocols/SkypeClassic/src/gchat.cpp
+++ b/protocols/SkypeClassic/src/gchat.cpp
@@ -845,13 +845,11 @@ void GCInit(void)
void GCExit(void)
{
DeleteCriticalSection (&m_GCMutex);
- for (int i=0;i<chatcount;i++) {
- if(chats[i]) {
- free(chats[i].szChatName);
- free(chats[i].mJoinedContacts);
- }
+
+ for (int i=0; i < chatcount; i++) {
+ free(chats[i].szChatName);
+ free(chats[i].mJoinedContacts);
}
- if (chats) free (chats);
- chats = NULL;
+ free(chats); chats = NULL;
chatcount = 0;
-} \ No newline at end of file
+}