Skip to content
Snippets Groups Projects
Commit 5cab8770 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "translators: Don't use ast_module_running_ref."

parents a79a8d15 82cf585f
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment