diff options
Diffstat (limited to 'src/iochannel.c')
-rw-r--r-- | src/iochannel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iochannel.c b/src/iochannel.c index 910b7e0b..fa55875f 100644 --- a/src/iochannel.c +++ b/src/iochannel.c @@ -116,7 +116,7 @@ void iochannel_free(struct iochannel*io) { if (io->input_source) io->mainloop->cancel_io(io->mainloop, io->input_source); - if (io->output_source && io->output_source != io->input_source) + if (io->output_source && (io->output_source != io->input_source)) io->mainloop->cancel_io(io->mainloop, io->output_source); free(io); |