Generate a new copy of the amount string when copying a QIF split.

Prevents a double free error when both the original and the copy split
are destroyed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11830 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/register-rewrite
David Hampton 21 years ago
parent f7a382607b
commit 029b07fde3

@ -489,6 +489,7 @@ qif_split_copy(QifSplit split)
memcpy(s, split, sizeof(*s));
if (s->memo) s->memo = g_strdup(s->memo);
if (s->amountstr) s->amountstr = g_strdup(s->amountstr);
if (s->catstr) s->memo = g_strdup(s->catstr);
return s;

Loading…
Cancel
Save