GSocketConnection: don't close the socket if it's still reffed
authorDan Winship <danw@gnome.org>
Fri, 23 Apr 2010 12:47:18 +0000 (08:47 -0400)
committerDan Winship <danw@gnome.org>
Tue, 22 Jun 2010 19:25:28 +0000 (15:25 -0400)
commita0e1b226a21ca498b301981b0c89e89ad9a31eb1
treeba560e17eb26158f713d6c27ed113dd902465a70
parente0ff84e68817d12ebf4cde9433c4e1ed703d1eb4
GSocketConnection: don't close the socket if it's still reffed

When disposing a GSocketConnection, don't explicitly close the
underlying GSocket. The GSocket will close itself if it gets
destroyed, and if it doesn't get destroyed, that presumably means the
app still wants to use it. Eg, this lets you use GSocketClient to
create a GSocketConnection, and then take the GSocket and destroy the
GSocketConnection.

https://bugzilla.gnome.org/show_bug.cgi?id=616855
gio/gsocketconnection.c