[proxy,module] move list in dyn-channel-dump instead of copy

This commit is contained in:
Armin Novak 2024-09-18 11:22:43 +02:00
parent e6b4bb0e76
commit deec4df8c0
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ static BOOL dump_session_started(proxyPlugin* plugin, proxyData* pdata, void* /*
std::string path(cpath);
std::string channels(cchannels);
std::vector<std::string> list = split(channels, "[;,]");
auto cfg = new ChannelData(path, list, custom->session());
auto cfg = new ChannelData(path, std::move(list), custom->session());
if (!cfg || !cfg->create())
{
delete cfg;