diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-12-05 10:32:53 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-12-05 10:32:53 -0800 |
commit | 18291eedc3cb6bf4386698620ad9d02ad367126a (patch) | |
tree | 4096201b5a9e8c57605f145be8927e757cb23385 /src/upb_msg.h | |
parent | a95ab58e79c50b0927eae2b834d3de20a8effc36 (diff) |
Make defs refcounted, rename upb_context->upbsymtab.
There is currently a memory leak when type definitions
form cycles. This will need to be dealt with.
Diffstat (limited to 'src/upb_msg.h')
-rw-r--r-- | src/upb_msg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_msg.h b/src/upb_msg.h index 42f9bb2..adee884 100644 --- a/src/upb_msg.h +++ b/src/upb_msg.h @@ -59,7 +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); + upb_def_ref(UPB_UPCAST(md)); return msg; } |