mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merge "translators: Don't use ast_module_running_ref."
This commit is contained in:
@@ -342,10 +342,7 @@ static struct ast_trans_pvt *newpvt(struct ast_translator *t, struct ast_format
|
|||||||
*/
|
*/
|
||||||
pvt->explicit_dst = ao2_bump(explicit_dst);
|
pvt->explicit_dst = ao2_bump(explicit_dst);
|
||||||
|
|
||||||
if (!ast_module_running_ref(t->module)) {
|
ast_module_ref(t->module);
|
||||||
ast_free(pvt);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* call local init routine, if present */
|
/* call local init routine, if present */
|
||||||
if (t->newpvt && t->newpvt(pvt)) {
|
if (t->newpvt && t->newpvt(pvt)) {
|
||||||
|
Reference in New Issue
Block a user