Blame SOURCES/0005-glib-compat-g_slist_free_full-pass-the-right-ptr-to-.patch

4b3e03
From f5dfea28a3b909e51bcb544c399b02bd3ff65df7 Mon Sep 17 00:00:00 2001
4b3e03
From: Hans de Goede <hdegoede@redhat.com>
4b3e03
Date: Mon, 19 Aug 2013 16:51:58 +0200
4b3e03
Subject: [PATCH spice-gtk] glib-compat: g_slist_free_full: pass the right ptr
4b3e03
 to destroy (rhbz#997893)
4b3e03
4b3e03
The destroy function passed to g_slist_free_full should be passed the elements
4b3e03
data pointer, not the element itself.
4b3e03
4b3e03
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4b3e03
---
4b3e03
 gtk/glib-compat.c | 2 +-
4b3e03
 1 file changed, 1 insertion(+), 1 deletion(-)
4b3e03
4b3e03
diff --git a/gtk/glib-compat.c b/gtk/glib-compat.c
4b3e03
index 21be1f6..c3bb8e6 100644
4b3e03
--- a/gtk/glib-compat.c
4b3e03
+++ b/gtk/glib-compat.c
4b3e03
@@ -88,7 +88,7 @@ g_slist_free_full(GSList         *list,
4b3e03
 
4b3e03
     if (free_func) {
4b3e03
         for (el = list; el ; el = g_slist_next(el)) {
4b3e03
-            free_func(el);
4b3e03
+            free_func(el->data);
4b3e03
         }
4b3e03
     }
4b3e03