[gupnp] Yet more g_list_free_full
- From: Jens Georg <jensgeorg src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gupnp] Yet more g_list_free_full
 
- Date: Sun, 25 May 2014 10:03:29 +0000 (UTC)
 
commit bd9dfdc3a8cb435bd6a7c43ecb8be0afa73814b9
Author: Jens Georg <mail jensge org>
Date:   Sun May 25 12:02:46 2014 +0200
    Yet more g_list_free_full
    
    Signed-off-by: Jens Georg <mail jensge org>
 libgupnp/gupnp-service-introspection.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libgupnp/gupnp-service-introspection.c b/libgupnp/gupnp-service-introspection.c
index 60de64d..4453495 100644
--- a/libgupnp/gupnp-service-introspection.c
+++ b/libgupnp/gupnp-service-introspection.c
@@ -162,12 +162,8 @@ gupnp_service_action_info_free (GUPnPServiceActionInfo *action_info)
         GList *iter;
 
         g_free (action_info->name);
-
-        for (iter = action_info->arguments; iter; iter = iter->next) {
-                gupnp_service_action_arg_info_free (
-                                (GUPnPServiceActionArgInfo *) iter->data);
-        }
-        g_list_free (action_info->arguments);
+        g_list_free_full (action_info->arguments,
+                          (GDestroyNotify) gupnp_service_action_arg_info_free);
         g_slice_free (GUPnPServiceActionInfo, action_info);
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]