mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
g_list_free xaccAccountGetSplitList
This commit is contained in:
@@ -143,6 +143,7 @@ gnc_autoclear_get_splits (Account *account, gnc_numeric toclear_value,
|
||||
else
|
||||
nc_list = g_list_prepend (nc_list, split);
|
||||
}
|
||||
g_list_free (acc_splits);
|
||||
|
||||
if (gnc_numeric_zero_p (toclear_value))
|
||||
{
|
||||
|
||||
@@ -1094,6 +1094,7 @@ RESTART:
|
||||
GList *splits = xaccAccountGetSplitList (acc);
|
||||
g_list_foreach (splits,
|
||||
(GFunc)gnc_sx_scrub_split_numerics, NULL);
|
||||
g_list_free (splits);
|
||||
}
|
||||
g_list_free (children);
|
||||
}
|
||||
|
||||
@@ -236,6 +236,7 @@ lv_show_splits_free (GNCLotViewer *lv)
|
||||
/* display list */
|
||||
gnc_split_viewer_fill(lv, lv->split_free_store, filtered_list);
|
||||
g_list_free (filtered_list);
|
||||
g_list_free (split_list);
|
||||
}
|
||||
|
||||
/* ======================================================================== */
|
||||
|
||||
@@ -847,6 +847,7 @@ gnc_sxed_check_consistent (GncSxEditorDialog *sxed)
|
||||
g_hash_table_foreach (txns, set_sums_to_zero, NULL);
|
||||
|
||||
splitCount += g_list_length (splitList);
|
||||
g_list_free (splitList);
|
||||
|
||||
xaccAccountForEachTransaction (tmpl_acct, check_transaction_splits, &sd);
|
||||
|
||||
@@ -1510,6 +1511,7 @@ schedXact_editor_populate (GncSxEditorDialog *sxed)
|
||||
splitReg = gnc_ledger_display_get_split_register (sxed->ledger);
|
||||
gnc_split_register_load (splitReg, splitList, NULL);
|
||||
} /* otherwise, use the existing stuff. */
|
||||
g_list_free (splitList);
|
||||
}
|
||||
|
||||
/* Update the example cal */
|
||||
|
||||
@@ -683,6 +683,7 @@ gnc_find_split_in_account_by_memo (Account *account, const char *memo,
|
||||
rv = split;
|
||||
}
|
||||
|
||||
g_list_free (splits);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
@@ -385,6 +385,7 @@ gnc_sx_get_sxes_referencing_account(QofBook *book, Account *acct)
|
||||
|
||||
guid_free (guid);
|
||||
}
|
||||
g_list_free (splits);
|
||||
}
|
||||
return g_list_reverse (rtn);
|
||||
}
|
||||
|
||||
@@ -454,6 +454,7 @@ delete_template_trans(SchedXaction *sx)
|
||||
sxprivTransMapDelete,
|
||||
NULL);
|
||||
|
||||
g_list_free (templ_acct_splits);
|
||||
g_list_free (templ_acct_transactions);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -217,6 +217,7 @@ gint gnc_sx_get_instance_count( const SchedXaction *sx, /*@ null @*/ SXTmpStateD
|
||||
*/
|
||||
void gnc_sx_set_instance_count( SchedXaction *sx, gint instanceNum );
|
||||
|
||||
/* must be g_list_freed */
|
||||
GList *xaccSchedXactionGetSplits( const SchedXaction *sx );
|
||||
void xaccSchedXactionSetSplits( SchedXaction *sx, GList *newSplits );
|
||||
|
||||
|
||||
@@ -410,6 +410,7 @@ gncScrubLotDanglingPayments (GNCLot *lot)
|
||||
|
||||
filtered_list = g_list_prepend (filtered_list, free_split);
|
||||
}
|
||||
g_list_free (split_list);
|
||||
|
||||
filtered_list = g_list_reverse (filtered_list);
|
||||
match_list = gncSLFindOffsSplits (filtered_list, ll_val);
|
||||
@@ -723,6 +724,7 @@ restart:
|
||||
curr_split_no + 1, split_count);
|
||||
curr_split_no++;
|
||||
}
|
||||
g_list_free (splits);
|
||||
xaccAccountCommitEdit(acc);
|
||||
(percentagefunc)(NULL, -1.0);
|
||||
LEAVE ("(acc=%s)", str);
|
||||
|
||||
Reference in New Issue
Block a user