From 18291eedc3cb6bf4386698620ad9d02ad367126a Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 5 Dec 2009 10:32:53 -0800 Subject: 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. --- src/upb_mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_mm.c') 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); } -- cgit v1.2.3