[window-main-summarybar.c] use g_list_free_full

This commit is contained in:
Christopher Lam
2021-02-22 20:50:48 +08:00
parent f743f24e7e
commit 422c151a03

View File

@@ -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*