diff --git a/res/res_smdi.c b/res/res_smdi.c index 224dca9e46..d1d40f0cff 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -306,8 +306,10 @@ static inline void unref_msg(void *msg, enum smdi_message_type type) switch (type) { case SMDI_MWI: ASTOBJ_UNREF(mwi_msg, ast_smdi_mwi_message_destroy); + break; case SMDI_MD: ASTOBJ_UNREF(md_msg, ast_smdi_md_message_destroy); + break; } }