diff options
author | Jens Georg <mail@jensge.org> | 2014-03-16 21:16:10 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2014-03-16 21:16:10 +0100 |
commit | 000b6448cddfa009b939d4af5c68a984d3084557 (patch) | |
tree | 8499081cee7052af2fe997721854f6deafc67f12 | |
parent | 3030bf4cb97db33fcdfe7e69706fdb0f19b0f446 (diff) | |
download | gssdp-000b6448cddfa009b939d4af5c68a984d3084557.tar.gz |
Do not leak interface name
Signed-off-by: Jens Georg <mail@jensge.org>
-rw-r--r-- | 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); } |