mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix load string KVP memory error.
This commit is contained in:
@@ -361,9 +361,8 @@ set_string_val (gpointer pObject, gpointer pValue)
|
||||
|
||||
if (pInfo->value_type != KvpValue::Type::STRING || pValue == NULL)
|
||||
return;
|
||||
auto value = new KvpValue {static_cast<const char*> (pValue)};
|
||||
auto value = new KvpValue {g_strdup(static_cast<const char*> (pValue))};
|
||||
set_slot_from_value (pInfo, value);
|
||||
delete value;
|
||||
}
|
||||
|
||||
static gpointer
|
||||
|
||||
Reference in New Issue
Block a user