summaryrefslogtreecommitdiff
path: root/src/emulator.c
diff options
context:
space:
mode:
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>2011-02-17 16:55:25 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-02-17 10:07:52 -0600
commit13cff0337322dae184ca035e480c0cca65fe1bb3 (patch)
tree0ffd1be0aa17e918bf85e5613507db6a42395a86 /src/emulator.c
parent61d1ff6b50ef18b026002680154df5a0b9e68218 (diff)
downloadofono-13cff0337322dae184ca035e480c0cca65fe1bb3.tar.gz
emulator: unref GIOChannel after creation
Diffstat (limited to 'src/emulator.c')
-rw-r--r--src/emulator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emulator.c b/src/emulator.c
index 567692df..57449030 100644
--- a/src/emulator.c
+++ b/src/emulator.c
@@ -75,6 +75,8 @@ void ofono_emulator_register(struct ofono_emulator *em, int fd)
if (em->server == NULL)
return;
+ g_io_channel_unref(io);
+
g_at_server_set_debug(em->server, emulator_debug, "Server");
g_at_server_set_disconnect_function(em->server,
emulator_disconnect, em);