[gnio] Don't leak GSocket->priv->protocol



commit e63225a42c3e16944c71be1f5f199ed6986b744d
Author: Alexander Larsson <alexl redhat com>
Date:   Fri May 8 21:44:07 2009 +0200

    Don't leak GSocket->priv->protocol
---
 gio/gsocket.c |    2 ++
 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



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