From 47da2afd52b0f108085439e3dc8ad5236809fbae Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Sat, 21 Jan 2017 10:47:58 -0800 Subject: Make upb::SymbolTable no longer reference-counted. This transitions it from shared ownership to unique ownership. --- upb/msg.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'upb/msg.c') diff --git a/upb/msg.c b/upb/msg.c index 517b814..5fa9bc8 100644 --- a/upb/msg.c +++ b/upb/msg.c @@ -350,7 +350,6 @@ upb_msgfactory *upb_msgfactory_new(const upb_symtab *symtab) { upb_msgfactory *ret = upb_gmalloc(sizeof(*ret)); ret->symtab = symtab; - upb_symtab_ref(ret->symtab, &ret->symtab); upb_inttable_init(&ret->layouts, UPB_CTYPE_PTR); upb_inttable_init(&ret->mergehandlers, UPB_CTYPE_CONSTPTR); @@ -373,7 +372,6 @@ void upb_msgfactory_free(upb_msgfactory *f) { upb_inttable_uninit(&f->layouts); upb_inttable_uninit(&f->mergehandlers); - upb_symtab_unref(f->symtab, &f->symtab); upb_gfree(f); } -- cgit v1.2.3