Add a missing unref for queues in handle_statechange.
authorSean Bright <sean@malleable.com>
Tue, 26 May 2009 16:38:54 +0000 (16:38 +0000)
committerSean Bright <sean@malleable.com>
Tue, 26 May 2009 16:38:54 +0000 (16:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196792 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 9e0519f..d19f283 100644 (file)
@@ -1216,6 +1216,7 @@ static int handle_statechange(void *datap)
                }
 
                ao2_unlock(q);
+               ao2_ref(q, -1);
        }
 
        if (found)