summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-05-08 19:44:07 (GMT)
committerAlexander Larsson <alexl@redhat.com>2009-05-08 19:44:07 (GMT)
commite63225a42c3e16944c71be1f5f199ed6986b744d (patch)
tree20e499464322ed388aa6b0309290d7bf68de0516
parent3678eeeaa0b423d54ec9f86ce8eeb0363a21af39 (diff)
downloadgnio-e63225a42c3e16944c71be1f5f199ed6986b744d.tar.gz
gnio-e63225a42c3e16944c71be1f5f199ed6986b744d.tar.xz
Don't leak GSocket->priv->protocol
-rw-r--r--gio/gsocket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 2e3e538..5d9a273 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -617,6 +617,8 @@ g_socket_finalize (GObject *object)
!socket->priv->closed)
g_socket_close (socket, NULL);
+ g_free (socket->priv->protocol);
+
#ifdef G_OS_WIN32
g_assert (socket->priv->requested_conditions == NULL);
#endif