diff options
Diffstat (limited to 'src/upb_mm.c')
-rw-r--r-- | src/upb_mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_mm.c b/src/upb_mm.c index 60809a5..6f0f766 100644 --- a/src/upb_mm.c +++ b/src/upb_mm.c @@ -24,7 +24,7 @@ void upb_msg_destroy(struct upb_msg *msg) { if(!upb_msg_isset(msg, f) || !upb_field_ismm(f)) continue; upb_mm_destroy(upb_msg_getptr(msg, f), upb_field_ptrtype(f)); } - upb_msgdef_unref(msg->def); + upb_def_unref(UPB_UPCAST(msg->def)); free(msg); } |