diff --git a/apps/app_queue.c b/apps/app_queue.c index 9e0519f8dc..d19f28368c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1216,6 +1216,7 @@ static int handle_statechange(void *datap) } ao2_unlock(q); + ao2_ref(q, -1); } if (found)