diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-02 13:27:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-02 13:27:14 +0300 |
commit | a7a6991d945a508d0f21ab34fd2f76ca15b95248 (patch) | |
tree | bf01e4414cea21d2494272d0d150afaae0438fa5 /plugins/StatusManager/src/KeepStatus/ks_options.cpp | |
parent | 7253436a88270d83009626a1a5021658de85e8e8 (diff) |
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
Diffstat (limited to 'plugins/StatusManager/src/KeepStatus/ks_options.cpp')
-rw-r--r-- | plugins/StatusManager/src/KeepStatus/ks_options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |