mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
use g_list_free_full
This commit is contained in:
parent
e5027f91cb
commit
f4941a5b01
@ -331,15 +331,10 @@ gnc_scm2guid_glist (SCM guids_scm)
|
||||
return g_list_reverse (guids);
|
||||
}
|
||||
|
||||
static void
|
||||
static inline void
|
||||
gnc_guid_glist_free (GList *guids)
|
||||
{
|
||||
GList *node;
|
||||
|
||||
for (node = guids; node; node = node->next)
|
||||
guid_free (node->data);
|
||||
|
||||
g_list_free (guids);
|
||||
g_list_free_full (guids, guid_free);
|
||||
}
|
||||
|
||||
static SCM
|
||||
|
@ -168,7 +168,7 @@ initialize_getters (void)
|
||||
}
|
||||
|
||||
static void
|
||||
destroy_tax_type_info (gpointer data, gpointer user_data)
|
||||
destroy_tax_type_info (gpointer data)
|
||||
{
|
||||
TaxTypeInfo *tax_type = data;
|
||||
|
||||
@ -187,15 +187,14 @@ destroy_tax_type_info (gpointer data, gpointer user_data)
|
||||
g_free (tax_type);
|
||||
}
|
||||
|
||||
static void
|
||||
static inline void
|
||||
destroy_tax_type_infos (GList *types)
|
||||
{
|
||||
g_list_foreach (types, destroy_tax_type_info, NULL);
|
||||
g_list_free (types);
|
||||
g_list_free_full (types, destroy_tax_type_info);
|
||||
}
|
||||
|
||||
static void
|
||||
destroy_txf_info (gpointer data, gpointer user_data)
|
||||
destroy_txf_info (gpointer data)
|
||||
{
|
||||
TXFInfo *txf_info = data;
|
||||
|
||||
@ -217,11 +216,10 @@ destroy_txf_info (gpointer data, gpointer user_data)
|
||||
g_free (txf_info);
|
||||
}
|
||||
|
||||
static void
|
||||
static inline void
|
||||
destroy_txf_infos (GList *infos)
|
||||
{
|
||||
g_list_foreach (infos, destroy_txf_info, NULL);
|
||||
g_list_free (infos);
|
||||
g_list_free_full (infos, destroy_txf_info);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user