Skip to content

Commit fa119f8

Browse files
committed
Split test other
1 parent b9b7a9e commit fa119f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libgnucash/engine/Split.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,8 @@ xaccFreeSplit (Split *split)
725725
{
726726
Split *other = xaccSplitGetOtherSplit(split->gains_split);
727727
split->gains_split->gains_split = NULL;
728-
other->gains_split = NULL;
728+
if (other)
729+
other->gains_split = NULL;
729730
}
730731

731732
g_object_unref(split);

0 commit comments

Comments
 (0)