summaryrefslogtreecommitdiff
path: root/upb/msg.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2017-01-24 09:52:12 -0800
committerGitHub <noreply@github.com>2017-01-24 09:52:12 -0800
commit72ae34c28fb93ca1e45920d9e8714c74c7292dee (patch)
tree209f30d355c86cd961412db9a2e1e25ca81e648b /upb/msg.c
parent9a9a1097a7bdb096208feab9f2fc8c440d315895 (diff)
parent5aa01b46e41dcdbbd2dad6d1b7ecce9a60b8ce7a (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.c2
1 files changed, 0 insertions, 2 deletions
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);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback