diff options
Diffstat (limited to 'src/upb_msg.h')
-rw-r--r-- | src/upb_msg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/upb_msg.h b/src/upb_msg.h index 4ca1e2a..42f9bb2 100644 --- a/src/upb_msg.h +++ b/src/upb_msg.h @@ -59,6 +59,7 @@ INLINE struct upb_msg *upb_msg_new(struct upb_msgdef *md) { memset(msg, 0, size); upb_mmhead_init(&msg->mmhead); msg->def = md; + upb_msgdef_ref(md); return msg; } |