Diff between e05011b3f3ec41f957e30cffc94bcdf39e3437ef and e8f0a6c31558306e8ba03bd0d4d8647c39c0e563
Changed Files
| File | Additions | Deletions | Status |
| attrib/gattrib.c | +3 | -2 | modified |
Full Patch
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index ccddabe..12a9fcf 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -193,10 +193,11 @@ static void attrib_destroy(GAttrib *attrib)
if (attrib->write_watch > 0)
g_source_remove(attrib->write_watch);
- if (attrib->read_watch > 0) {
+ if (attrib->read_watch > 0)
g_source_remove(attrib->read_watch);
+
+ if (attrib->io)
g_io_channel_unref(attrib->io);
- }
g_free(attrib->buf);