diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2017-01-24 09:52:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-24 09:52:12 -0800 |
commit | 72ae34c28fb93ca1e45920d9e8714c74c7292dee (patch) | |
tree | 209f30d355c86cd961412db9a2e1e25ca81e648b /upb/msg.c | |
parent | 9a9a1097a7bdb096208feab9f2fc8c440d315895 (diff) | |
parent | 5aa01b46e41dcdbbd2dad6d1b7ecce9a60b8ce7a (diff) |
Merge pull request #77 from haberman/axerefcount
Simplify and remove some code from upb::SymbolTable
Diffstat (limited to 'upb/msg.c')
-rw-r--r-- | upb/msg.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); } |