From 5d3f7702c50861f7f7f5ebeb160ef0073a5470f5 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 20 Jan 2007 21:09:28 +0000 Subject: Fix GIOChannel refcounting for io_session_event --- sdpd/server.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sdpd') diff --git a/sdpd/server.c b/sdpd/server.c index 4316746b..eeda8a86 100644 --- a/sdpd/server.c +++ b/sdpd/server.c @@ -149,10 +149,8 @@ static gboolean io_session_event(GIOChannel *chan, GIOCondition cond, gpointer d uint8_t *buf; int sk, len, size; - if (cond & (G_IO_HUP | G_IO_ERR)) { - g_io_channel_unref(chan); + if (cond & (G_IO_HUP | G_IO_ERR)) return FALSE; - } sk = g_io_channel_unix_get_fd(chan); -- cgit