gnet r495 - in trunk: . src
- From: tpm svn gnome org
- To: svn-commits-list gnome org
- Subject: gnet r495 - in trunk: . src
- Date: Tue, 13 May 2008 08:10:28 +0100 (BST)
Author: tpm
Date: Tue May 13 07:10:28 2008
New Revision: 495
URL: http://svn.gnome.org/viewvc/gnet?rev=495&view=rev
Log:
* src/conn.c: (gnet_conn_unref):
Don't leak main context ref when one was set.
Spotted by Kuang-Chun Cheng.
Modified:
trunk/ChangeLog
trunk/src/conn.c
Modified: trunk/src/conn.c
==============================================================================
--- trunk/src/conn.c (original)
+++ trunk/src/conn.c Tue May 13 07:10:28 2008
@@ -305,6 +305,9 @@
if (conn->inetaddr)
gnet_inetaddr_delete (conn->inetaddr);
+ if (conn->context)
+ g_main_context_unref (conn->context);
+
g_free (conn->buffer);
g_free (conn);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]