diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-11-26 18:21:13 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-11-26 18:21:13 (GMT) |
commit | 70a1a55321282d0aa1e7f13d327db21aa25d212a (patch) | |
tree | c5ef0d8050af491abb587a01a5c93fed5188353d /src/core/collections.c | |
parent | c951852890ce173c4d65450157d42127da2d061c (diff) |
Fixed some memory leaks at exit.
Diffstat (limited to 'src/core/collections.c')
-rw-r--r-- | src/core/collections.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/collections.c b/src/core/collections.c index d045e5a..a047a15 100644 --- a/src/core/collections.c +++ b/src/core/collections.c @@ -183,3 +183,28 @@ GList *create_collections_list(void) return result; } + + +/****************************************************************************** +* * +* Paramètres : collec = liste complète de collections à traiter. [OUT] * +* * +* Description : Détruit un ensemble de collections. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void delete_collections_list(GList **collec) +{ + if (*collec != NULL) + { + g_list_free_full(*collec, g_object_unref); + + *collec = NULL; + + } + +} |