Merge "chan_vpb.cc: Fix compiler warning Jenkins found."
This commit is contained in:
commit
fa4dd9755a
|
@ -2628,14 +2628,13 @@ static int unload_module(void)
|
|||
|
||||
if (bridges) {
|
||||
ast_mutex_lock(&bridge_lock);
|
||||
memset(bridges, 0, sizeof bridges);
|
||||
ast_mutex_unlock(&bridge_lock);
|
||||
ast_mutex_destroy(&bridge_lock);
|
||||
for (int i = 0; i < max_bridges; i++) {
|
||||
ast_mutex_destroy(&bridges[i].lock);
|
||||
ast_cond_destroy(&bridges[i].cond);
|
||||
}
|
||||
ast_free(bridges);
|
||||
bridges = NULL;
|
||||
ast_mutex_unlock(&bridge_lock);
|
||||
}
|
||||
|
||||
ao2_cleanup(vpb_tech.capabilities);
|
||||
|
|
Loading…
Reference in New Issue