diff options
author | George Hazan <george.hazan@gmail.com> | 2016-03-23 13:40:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-03-23 13:40:40 +0000 |
commit | c49db60246165780c37b86ba8a084d31c5cc5446 (patch) | |
tree | c37c2492bcce52be147e86367d22da2a961d2a36 /plugins/Clist_modern/src/modern_clcitems.cpp | |
parent | 9451818a55c1f2a6995b813c6bdc0cbb3839fa94 (diff) |
- minus unneeded vraiable;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16527 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcitems.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcitems.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp index f080b24bc5..679c5deb81 100644 --- a/plugins/Clist_modern/src/modern_clcitems.cpp +++ b/plugins/Clist_modern/src/modern_clcitems.cpp @@ -616,18 +616,18 @@ ClcCacheEntry* cliCreateCacheItem(MCONTACT hContact) return NULL; p->hContact = hContact; - InvalidateDNCEbyPointer(hContact, p, 0); -
+ p->m_cache_cszProto = GetContactProto(hContact); + if (p->m_cache_cszProto == NULL) { + mir_free(p); + return NULL; + } + + p->dwLastMsgTime = -1;
p->bIsHidden = -1;
p->m_cache_nNoHiddenOffline = -1;
p->IdleTS = -1;
p->NotOnList = -1;
p->IsExpanded = -1;
-
- p->szSecondLineText = NULL; - p->szThirdLineText = NULL; - p->ssSecondLine.plText = NULL; - p->ssThirdLine.plText = NULL; return p; } |