]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Fix crash when unloading module. 06/2706/1
authorJoshua Colp <jcolp@digium.com>
Tue, 26 Apr 2016 10:48:40 +0000 (07:48 -0300)
committerJoshua Colp <jcolp@digium.com>
Tue, 26 Apr 2016 11:15:46 +0000 (06:15 -0500)
commit5baf8152931de20164cad324e026cb71a16abdc2
treec380dbe99fd65ce71e49c5b3e4ecc3489c09ee65
parent71d667057db812e112c08f7a6856b07ca6ef65d7
app_queue: Fix crash when unloading module.

When unloading the app_queue module the members in each queue are
destroyed and as part of this they are removed from the pending
members container. Unfortunately a crash would occur as the container
was destroyed before the members were removed.

This change tweaks ordering so the container destruction occurs
after the members are destroyed.

ASTERISK-16115

Change-Id: I48c728668c55aee3d05b751a5d450fb57e87f44b
apps/app_queue.c