[Spice-commits] gtk/glib-compat.c

Hans de Goede jwrdegoede at kemper.freedesktop.org
Mon Aug 19 08:08:14 PDT 2013


 gtk/glib-compat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f5dfea28a3b909e51bcb544c399b02bd3ff65df7
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Mon Aug 19 16:51:58 2013 +0200

    glib-compat: g_slist_free_full: pass the right ptr to destroy (rhbz#997893)
    
    The destroy function passed to g_slist_free_full should be passed the elements
    data pointer, not the element itself.
    
    Signed-off-by: Hans de Goede <hdegoede at redhat.com>

diff --git a/gtk/glib-compat.c b/gtk/glib-compat.c
index 21be1f6..c3bb8e6 100644
--- a/gtk/glib-compat.c
+++ b/gtk/glib-compat.c
@@ -88,7 +88,7 @@ g_slist_free_full(GSList         *list,
 
     if (free_func) {
         for (el = list; el ; el = g_slist_next(el)) {
-            free_func(el);
+            free_func(el->data);
         }
     }
 


More information about the Spice-commits mailing list