[gssdp] client: Do not leak host_addr
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] client: Do not leak host_addr
- Date: Mon, 25 Apr 2016 21:15:03 +0000 (UTC)
commit 9d95f3ff93b8cdaefbfb3ee2f51253eac544e72a
Author: Jens Georg <mail jensge org>
Date: Sun Apr 24 22:48:19 2016 +0200
client: Do not leak host_addr
Signed-off-by: Jens Georg <mail jensge org>
libgssdp/gssdp-client.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c
index 7e6c43e..6fec14c 100644
--- a/libgssdp/gssdp-client.c
+++ b/libgssdp/gssdp-client.c
@@ -454,6 +454,11 @@ gssdp_client_dispose (GObject *object)
client->priv->search_socket = NULL;
}
+ if (client->priv->device.host_addr != NULL) {
+ g_object_unref (client->priv->device.host_addr);
+ client->priv->device.host_addr = NULL;
+ }
+
G_OBJECT_CLASS (gssdp_client_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]