Mercurial > hg > vamp-plugin-load-checker
diff src/helper.cpp @ 48:2e8a5f665a07
Merge
author | Chris Cannam |
---|---|
date | Mon, 03 Sep 2018 16:13:50 +0100 |
parents | d7ec0b2a8802 |
children | 51a8fe0a03cf |
line wrap: on
line diff
--- a/src/helper.cpp Mon Sep 03 16:13:38 2018 +0100 +++ b/src/helper.cpp Mon Sep 03 16:13:50 2018 +0100 @@ -125,14 +125,14 @@ int wn = wcslen(buffer); int n = WideCharToMultiByte(CP_UTF8, 0, buffer, wn, 0, 0, 0, 0); if (n < 0) { - LocalFree(&buffer); + LocalFree(buffer); return "Unable to convert error string (internal error)"; } char *text = new char[n+1]; (void)WideCharToMultiByte(CP_UTF8, 0, buffer, wn, text, n, 0, 0); text[n] = '\0'; std::string s(text); - LocalFree(&buffer); + LocalFree(buffer); delete[] text; if (s == "") { return s;