mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[window-main-summarybar.c] use g_list_free_full
This commit is contained in:
@@ -432,14 +432,7 @@ gnc_main_window_summary_refresh (GNCMainSummary * summary)
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(summary->totals_combo), 0);
|
||||
}
|
||||
|
||||
/* Free the list we created for this */
|
||||
for (current = g_list_first(currency_list);
|
||||
current;
|
||||
current = g_list_next(current))
|
||||
{
|
||||
g_free(current->data);
|
||||
}
|
||||
g_list_free(currency_list);
|
||||
g_list_free_full (currency_list, g_free);
|
||||
}
|
||||
|
||||
static gchar*
|
||||
|
||||
Reference in New Issue
Block a user