mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-option-impl] don't leak char*
use the stack
This commit is contained in:
parent
55b9382ad9
commit
d21698f7cf
@ -839,12 +839,14 @@ GncOptionAccountListValue::serialize() const noexcept
|
||||
bool first = true;
|
||||
if (m_value.empty())
|
||||
return no_value;
|
||||
gchar guidstr[GUID_ENCODING_LENGTH + 1];
|
||||
for (auto val : m_value)
|
||||
{
|
||||
if (!first)
|
||||
retval += " ";
|
||||
first = false;
|
||||
retval += guid_to_string(&val);
|
||||
guid_to_string_buff (&val, guidstr);
|
||||
retval += guidstr;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user