summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Clist_blind/src/init.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Clist_blind/src/init.cpp b/plugins/Clist_blind/src/init.cpp
index 6a0a3a4d43..cc4dba1b31 100644
--- a/plugins/Clist_blind/src/init.cpp
+++ b/plugins/Clist_blind/src/init.cpp
@@ -335,7 +335,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L
switch (msg) {
case WM_CREATE:
- dat = (ClcData*)mir_calloc(sizeof(ClcData));
+ dat = new ClcData();
SetWindowLongPtr(hwnd, 0, (LONG_PTR)dat);
dat->hwnd_list = CreateWindow(_T("LISTBOX"), _T(""),
@@ -513,8 +513,7 @@ void RebuildEntireListInternal(HWND hwnd, ClcData *tmp_dat, BOOL call_orig)
size_t size = _countof(tmp);
while (true) {
if (group->scanIndex == group->cl.getCount()) {
- group = group->parent;
- if (group == NULL)
+ if ((group = group->parent) == NULL)
break;
text -= 2;
size += 2;