changeset 24803:759dbafdc74a

merge of '86eb900cf982408bb630159b662426812328a78c' and '98bb92b730985c4b69ec5cf85884e6a9e3889816'
author Mark Doliner <mark@kingant.net>
date Wed, 17 Dec 2008 20:56:30 +0000
parents c044eb54b7ac (current diff) 075d700fdc75 (diff)
children 29931785a68a
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Wed Dec 17 20:50:49 2008 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Wed Dec 17 20:56:30 2008 +0000
@@ -2241,6 +2241,10 @@
 	if (session->gc->inpa) {
 		purple_input_remove(session->gc->inpa);
 	}
+	if (session->fd >= 0) {
+		close(session->fd);
+		session->fd = -1;
+	}
 
 	msim_session_destroy(session);
 }