Merged revisions 104119 via svnmerge from
[asterisk/asterisk.git] / channels / chan_zap.c
index 36e0f93..f09dd62 100644 (file)
@@ -2764,7 +2764,7 @@ static void destroy_zt_pvt(struct zt_pvt **pvt)
        if (p->next)
                p->next->prev = p->prev;
        if (p->use_smdi)
-               ASTOBJ_UNREF(p->smdi_iface, ast_smdi_interface_destroy);
+               ast_smdi_interface_unref(p->smdi_iface);
        if (p->mwi_event_sub)
                ast_event_unsubscribe(p->mwi_event_sub);
        if (p->vars)