From: Peter Meerwald <p.meerwald@xxxxxxxxxxxxxxxxxx> copy-pase error discovered by coverity Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net> --- src/pulsecore/iochannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulsecore/iochannel.c b/src/pulsecore/iochannel.c index ca0f350..dce6734 100644 --- a/src/pulsecore/iochannel.c +++ b/src/pulsecore/iochannel.c @@ -119,7 +119,7 @@ static void enable_events(pa_iochannel *io) { io->mainloop->io_enable(io->output_event, PA_IO_EVENT_OUTPUT); else io->output_event = io->mainloop->io_new(io->mainloop, io->ofd, PA_IO_EVENT_OUTPUT, callback, io); - } else if (io->input_event) { + } else if (io->output_event) { io->mainloop->io_free(io->output_event); io->output_event = NULL; } -- 1.7.9.5