Merge "translators: Don't use ast_module_running_ref."

This commit is contained in:
Joshua Colp 2018-01-04 14:49:06 -06:00 committed by Gerrit Code Review
commit 5cab877093
1 changed files with 1 additions and 4 deletions

View File

@ -342,10 +342,7 @@ static struct ast_trans_pvt *newpvt(struct ast_translator *t, struct ast_format
*/
pvt->explicit_dst = ao2_bump(explicit_dst);
if (!ast_module_running_ref(t->module)) {
ast_free(pvt);
return NULL;
}
ast_module_ref(t->module);
/* call local init routine, if present */
if (t->newpvt && t->newpvt(pvt)) {