[gedit-cossa] Use g_list_free_full



commit 8a5220d7c65505b06ab64cfed3db783381092180
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun May 29 15:06:21 2011 +0200

    Use g_list_free_full

 src/cossa-previewer.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/cossa-previewer.c b/src/cossa-previewer.c
index 0cd5e66..4fc4d36 100644
--- a/src/cossa-previewer.c
+++ b/src/cossa-previewer.c
@@ -159,8 +159,7 @@ cossa_previewer_finalize (GObject *object)
   priv = COSSA_PREVIEWER (object)->priv;
   g_object_unref (priv->provider);
 
-  g_list_foreach (priv->samples, (GFunc) sample_data_free, NULL);
-  g_list_free (priv->samples);
+  g_list_free_full (priv->samples, (GDestroyNotify) sample_data_free);
 
   G_OBJECT_CLASS (cossa_previewer_parent_class)->finalize (object);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]