diff --git a/res/res_smdi.c b/res/res_smdi.c index 53f174b3cc..9cd78b4902 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -305,8 +305,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; } }