[gupnp] Add some comments about ownership



commit 593746718ac469a2e5aa35c70ecbd9939d2164d8
Author: Jens Georg <mail jensge org>
Date:   Sun May 25 11:47:01 2014 +0200

    Add some comments about ownership
    
    Signed-off-by: Jens Georg <mail jensge org>

 libgupnp/gupnp-service-introspection.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp/gupnp-service-introspection.c b/libgupnp/gupnp-service-introspection.c
index ebcc7a2..bc19dcb 100644
--- a/libgupnp/gupnp-service-introspection.c
+++ b/libgupnp/gupnp-service-introspection.c
@@ -194,9 +194,13 @@ gupnp_service_introspection_finalize (GObject *object)
                 g_list_free (introspection->priv->actions);
         }
 
+        /* Contents don't need to be freed, they were owned by priv->variables
+         */
         if (introspection->priv->variable_names)
                 g_list_free (introspection->priv->variable_names);
 
+        /* Contents don't need to be freed, they were owned by priv->actions
+         */
         if (introspection->priv->action_names)
                 g_list_free (introspection->priv->action_names);
 }


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