diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-04 21:57:03 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-04 21:57:03 +0000 |
commit | a1b29eefb9f5bb3ef25a3b4c22a6ac751aa670da (patch) | |
tree | 18509c65cbbdb1e43b7a14ef429ae6b7774a3ab7 /apps | |
parent | 35a58c25b0c91c1e859482047fa991881e889be3 (diff) |
Don't allocate space for queue members unless it's needed. You end up deleting dynamic members on a reload. Not good.
closes issue (#10879, reported by dazza76, patched by me)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@84692 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index a7de4ba98..38ebedad8 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -722,7 +722,8 @@ static void init_queue(struct call_queue *q) q->context[0] = '\0'; q->monfmt[0] = '\0'; q->periodicannouncefrequency = 0; - q->members = ao2_container_alloc(37, member_hash_fn, member_cmp_fn); + if(!q->members) + q->members = ao2_container_alloc(37, member_hash_fn, member_cmp_fn); q->membercount = 0; q->found = 1; ast_copy_string(q->sound_next, "queue-youarenext", sizeof(q->sound_next)); |