Diff between 6ce22a5ad2a7c7a0501f0bb0546a8db81640ce9f and 2898f256d1d807d0421ad4010cb47566f0efdaf5
Changed Files
| File | Additions | Deletions | Status |
| src/shared/hfp.c | +3 | -4 | modified |
Full Patch
diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index 05a8563..0ce3121 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -610,10 +610,9 @@ struct hfp_gw *hfp_gw_new(int fd)
return NULL;
}
- if (!io_set_read_handler(hfp->io, can_read_data,
- hfp, read_watch_destroy)) {
- queue_destroy(hfp->cmd_handlers,
- destroy_cmd_handler);
+ if (!io_set_read_handler(hfp->io, can_read_data, hfp,
+ read_watch_destroy)) {
+ queue_destroy(hfp->cmd_handlers, destroy_cmd_handler);
io_destroy(hfp->io);
ringbuf_free(hfp->write_buf);
ringbuf_free(hfp->read_buf);