summaryrefslogtreecommitdiff
path: root/src/upb_msg.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-12-05 10:32:53 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-12-05 10:32:53 -0800
commit18291eedc3cb6bf4386698620ad9d02ad367126a (patch)
tree4096201b5a9e8c57605f145be8927e757cb23385 /src/upb_msg.h
parenta95ab58e79c50b0927eae2b834d3de20a8effc36 (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.h2
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;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback