emulator: unref GIOChannel after creation

This commit is contained in:
Frédéric Dalleau 2011-02-17 16:55:25 +01:00 committed by Denis Kenzior
parent 61d1ff6b50
commit 13cff03373
1 changed files with 2 additions and 0 deletions

View File

@ -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);