diff --git a/res/res_pjsip_mwi.c b/res/res_pjsip_mwi.c index 6bed363927..bd865eec4c 100644 --- a/res/res_pjsip_mwi.c +++ b/res/res_pjsip_mwi.c @@ -682,6 +682,7 @@ static void create_mwi_subscriptions(void) } ao2_callback(endpoints, OBJ_NODATA, create_mwi_subscriptions_for_endpoint, mwi_subscriptions); ao2_global_obj_replace_unref(unsolicited_mwi, mwi_subscriptions); + ao2_ref(mwi_subscriptions, -1); } static int reload(void)