summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clui.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-14 14:31:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-14 14:31:39 +0000
commitaa090255cfc30e3aeef7e2ed8d1c8eac3e477cdb (patch)
treeb4e4653276536c993e4b55a46a023f0e59831168 /plugins/Clist_modern/src/modern_clui.cpp
parentfd8eefffc4b86f389c72e9cb88cf34533c759657 (diff)
fix: various problems with memory
git-svn-id: http://svn.miranda-ng.org/main/trunk@4025 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clui.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clui.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp
index a457d7f17f..e3ec1751e9 100644
--- a/plugins/Clist_modern/src/modern_clui.cpp
+++ b/plugins/Clist_modern/src/modern_clui.cpp
@@ -1038,11 +1038,13 @@ static int CLUI_CreateTimerForConnectingIcon(WPARAM wParam,LPARAM lParam)
int i=0;
nAnimatedIconStep = 100;/*DBGetContactSettingWord(NULL,"CLUI","DefaultStepConnectingIcon",100);*/
pt->nIconsCount = cnt;
- if (pt->himlIconList) ImageList_Destroy(pt->himlIconList);
+ if (pt->himlIconList)
+ ImageList_Destroy(pt->himlIconList);
pt->himlIconList = ImageList_Create(16,16,ILC_MASK|ILC_COLOR32,cnt,1);
for (i=0; i < cnt; i++) {
HICON ic = CLUI_GetConnectingIconForProto(szProto,i);
- if (ic) ImageList_AddIcon(pt->himlIconList,ic);
+ if (ic)
+ ImageList_AddIcon(pt->himlIconList, ic);
DestroyIcon_protect(ic);
}
CLUI_SafeSetTimer(pcli->hwndContactList,TM_STATUSBARUPDATE+pt->nIndex,(int)(nAnimatedIconStep)/1,0);
@@ -2157,8 +2159,7 @@ LRESULT CLUI::OnStatusBarUpdateTimer( UINT msg, WPARAM wParam, LPARAM lParam )
pt->bTimerCreated = 0;
}
}
-
- };
+ }
pt = &CycleStartTick[wParam-TM_STATUSBARUPDATE];
{