summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 147e70d..a489a84 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -327,8 +327,11 @@ static int pulse_free(void) {
}
fail:
- pa_threaded_mainloop_unlock(mainloop);
+ if (o)
+ pa_operation_unref(o);
+ pa_threaded_mainloop_unlock(mainloop);
+
do_trigger = !!l;
return (int) l;
}