diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2011-02-24 17:34:28 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-02-24 17:43:35 -0300 |
commit | a2e31571167744a65899688cf5d755f11c5e9442 (patch) | |
tree | c301c86ba74698b8f57680fc5c0049d1089ff861 /attrib | |
parent | 6682df6daed985690edc69e6784877627309e1cd (diff) | |
download | bluez-a2e31571167744a65899688cf5d755f11c5e9442.tar.gz |
gatttool: Remove extra reference to the connection IO Channel
As we want the connection to be closed when the last GAttrib
reference is dropped, we don't need to keep this reference.
Diffstat (limited to 'attrib')
-rw-r--r-- | attrib/gatttool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c index 7478043c..547757df 100644 --- a/attrib/gatttool.c +++ b/attrib/gatttool.c @@ -620,6 +620,7 @@ int main(int argc, char *argv[]) } attrib = g_attrib_new(chan); + g_io_channel_unref(chan); event_loop = g_main_loop_new(NULL, FALSE); @@ -634,7 +635,6 @@ int main(int argc, char *argv[]) g_main_loop_unref(event_loop); - g_io_channel_unref(chan); g_attrib_unref(attrib); done: |