Fix memory leak in customicons_stash_get_list()

This commit is contained in:
RElesgoe 2016-08-28 02:53:31 -07:00
parent bbb2264de5
commit e759c4e7a8

View file

@ -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;
}