diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-26 16:55:47 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-26 16:55:47 +0000 |
commit | ea7b976177bffc7f3c89e380a1273e1d85b2a24f (patch) | |
tree | 146321302301da35c12ae5ac10fd6f6700c13945 /hcid/main.c | |
parent | 448146fdeb6a90cdf11826fcdc88ce9068eb9646 (diff) |
Cleanup/fix glib-ectomy.c and its usage
Diffstat (limited to 'hcid/main.c')
-rw-r--r-- | hcid/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/main.c b/hcid/main.c index b15634fe..dd3367b7 100644 --- a/hcid/main.c +++ b/hcid/main.c @@ -716,6 +716,7 @@ int main(int argc, char *argv[]) event_loop = g_main_new(FALSE); ctl_io = g_io_channel_unix_new(hcid.sock); + g_io_channel_set_close_on_unref(ctl_io, TRUE); g_io_add_watch(ctl_io, G_IO_IN, io_stack_event, NULL); @@ -737,6 +738,8 @@ int main(int argc, char *argv[]) g_main_unref(event_loop); + g_io_channel_unref(ctl_io); + info("Exit"); stop_logging(); |