Fix memory leak in customicons_stash_get_list()
This commit is contained in:
parent
bbb2264de5
commit
e759c4e7a8
1 changed files with 2 additions and 4 deletions
|
@ -536,13 +536,11 @@ namespace pvpgn
|
|||
}
|
||||
|
||||
|
||||
char const * val = (return_alias)
|
||||
? xstrdup(var->key)
|
||||
: xstrdup(var->value);
|
||||
std::string val = (return_alias) ? var->key: var->value;
|
||||
|
||||
if (!output.empty())
|
||||
output += ", ";
|
||||
output += std::string(val);
|
||||
output += val;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue