[gssdp] Do not leak interface name



commit 000b6448cddfa009b939d4af5c68a984d3084557
Author: Jens Georg <mail jensge org>
Date:   Sun Mar 16 21:16:10 2014 +0100

    Do not leak interface name
    
    Signed-off-by: Jens Georg <mail jensge org>

 libgssdp/gssdp-socket-source.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgssdp/gssdp-socket-source.c b/libgssdp/gssdp-socket-source.c
index a51b1a7..fe5f3df 100644
--- a/libgssdp/gssdp-socket-source.c
+++ b/libgssdp/gssdp-socket-source.c
@@ -396,6 +396,11 @@ gssdp_socket_source_finalize (GObject *object)
                 self->priv->host_ip = NULL;
         }
 
+        if (self->priv->device_name != NULL) {
+                g_free (self->priv->device_name);
+                self->priv->device_name = NULL;
+        }
+
         G_OBJECT_CLASS (gssdp_socket_source_parent_class)->finalize (object);
 }
 


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