diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-20 17:12:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-20 17:12:40 +0000 |
commit | 509f52fe07c0b035dfeea810b99edf92a9781380 (patch) | |
tree | 3a31ce4a6260801a9dfd47c2c50e2875171eab3c /plugins/Clist_nicer/src/clc.cpp | |
parent | 646d843cd5b1b3498e488f99d812ad344f746f81 (diff) |
nicer+ status items list made dynamic
git-svn-id: http://svn.miranda-ng.org/main/trunk@3654 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clc.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clc.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/Clist_nicer/src/clc.cpp b/plugins/Clist_nicer/src/clc.cpp index 6d80e49cfd..99e1ff7668 100644 --- a/plugins/Clist_nicer/src/clc.cpp +++ b/plugins/Clist_nicer/src/clc.cpp @@ -43,7 +43,6 @@ extern wndFrame *wndFrameCLC; extern ButtonItem *g_ButtonItems;
extern int during_sizing;
-extern StatusItems_t *StatusItems;
HIMAGELIST hCListImages;
@@ -219,21 +218,21 @@ int ClcShutdown(WPARAM wParam, LPARAM lParam) free(cfg::eCache[i].statusMsg);
if (cfg::eCache[i].status_item) {
StatusItems_t *item = cfg::eCache[i].status_item;
- int j;
free(cfg::eCache[i].status_item);
cfg::eCache[i].status_item = 0;
- for (j = i; j < cfg::nextCacheEntry; j++) { // avoid duplicate free()'ing status item pointers (there are references from sub to master contacts, so compare the pointers...
+ for (int j = i; j < cfg::nextCacheEntry; j++) // avoid duplicate free()'ing status item pointers (there are references from sub to master contacts, so compare the pointers...
if (cfg::eCache[j].status_item == item)
cfg::eCache[j].status_item = 0;
- }
}
}
free(cfg::eCache);
cfg::eCache = NULL;
}
IMG_DeleteItems();
- free(StatusItems);
+ for (int i=0; i < arStatusItems.getCount(); i++)
+ mir_free(arStatusItems[i]);
+ arStatusItems.destroy();
DeleteCriticalSection(&cfg::cachecs);
return 0;
}
|