diff --git a/apps/app_queue.c b/apps/app_queue.c index 82399597c6..60cb9412ca 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1051,6 +1051,7 @@ static int handle_statechange(void *datap) } ao2_unlock(q); + ao2_ref(q, -1); } if (found)