summaryrefslogtreecommitdiff
path: root/src/upb_mm.c
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_mm.c
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_mm.c')
-rw-r--r--src/upb_mm.c2
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);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback