summaryrefslogtreecommitdiffstats
path: root/sdpd
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-20 21:09:28 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-20 21:09:28 +0000
commit5d3f7702c50861f7f7f5ebeb160ef0073a5470f5 (patch)
treec566b1a0f68df07822f78b2285c8e687edb81810 /sdpd
parentf64b45ffc0f9b1a0c202946c15ab35c681a7a3a2 (diff)
Fix GIOChannel refcounting for io_session_event
Diffstat (limited to 'sdpd')
-rw-r--r--sdpd/server.c4
1 files changed, 1 insertions, 3 deletions
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);