mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-10 08:25:52 +01:00
Remove naked new[] in: various
This commit is contained in:
@@ -2794,9 +2794,8 @@ wxString PluginManager::ConvertID(const PluginID & ID)
|
||||
if (ID.StartsWith(wxT("base64:")))
|
||||
{
|
||||
wxString id = ID.Mid(7);
|
||||
char *buf = new char[id.Length() / 4 * 3];
|
||||
id = wxString::FromUTF8(buf, b64decode(id, buf));
|
||||
delete [] buf;
|
||||
ArrayOf<char> buf{ id.Length() / 4 * 3 };
|
||||
id = wxString::FromUTF8(buf.get(), b64decode(id, buf.get()));
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user