[gupnp] Don't leak default-language



commit 82c6e9ef90a282505fedf3db79ce820e8a27f6e1
Author: Jens Georg <mail jensge org>
Date:   Thu Jul 14 11:46:36 2011 +0200

    Don't leak default-language

 libgupnp/gupnp-context.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index 2c7b862..d1fff37 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -300,6 +300,11 @@ gupnp_context_finalize (GObject *object)
 
         context = GUPNP_CONTEXT (object);
 
+        if (context->priv->default_language) {
+                g_free (context->priv->default_language);
+                context->priv->default_language = NULL;
+        }
+
         g_free (context->priv->server_url);
 
         /* Call super */



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