[gnio] Don't leak GSocket->priv->protocol
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnio] Don't leak GSocket->priv->protocol
- Date: Fri, 8 May 2009 15:46:37 -0400 (EDT)
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]