From a7a6991d945a508d0f21ab34fd2f76ca15b95248 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Feb 2018 13:27:14 +0300 Subject: StatusManager: - fixes #1129 (Status Manager broked. When I change profile - not happend) - all standard memory allocation routines replaced with mir_* (more effective) - classes used to allocate memory instead of manual code --- plugins/StatusManager/src/KeepStatus/ks_options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/StatusManager/src/KeepStatus/ks_options.cpp') diff --git a/plugins/StatusManager/src/KeepStatus/ks_options.cpp b/plugins/StatusManager/src/KeepStatus/ks_options.cpp index 7fb763b926..8931d9c01e 100644 --- a/plugins/StatusManager/src/KeepStatus/ks_options.cpp +++ b/plugins/StatusManager/src/KeepStatus/ks_options.cpp @@ -136,7 +136,7 @@ static INT_PTR CALLBACK DlgProcKSBasicOpts(HWND hwndDlg, UINT msg, WPARAM wParam int len = SendDlgItemMessage(hwndDlg, IDC_PINGHOST, WM_GETTEXTLENGTH, 0, 0); if (len > 0) { - host = (char*)malloc(len + 1); + host = (char*)mir_alloc(len + 1); if (host != nullptr) { memset(host, '\0', len + 1); GetDlgItemTextA(hwndDlg, IDC_PINGHOST, host, len + 1); -- cgit v1.2.3