[dialog-sx-editor] plug GHashTable leaks when returning early

This commit is contained in:
Christopher Lam 2023-01-05 14:37:10 +08:00
parent 6ba5b57e41
commit a9a67c717e

View File

@ -862,7 +862,11 @@ gnc_sxed_check_consistent (GncSxEditorDialog *sxed)
xaccAccountForEachTransaction (tmpl_acct, check_transaction_splits, &sd);
if (sd.err)
{
g_hash_table_destroy (vars);
g_hash_table_destroy (txns);
return FALSE;
}
g_hash_table_foreach (txns, check_credit_debit_balance, &unbalanceable);
}