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_mm.c | |
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_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); } |