summaryrefslogtreecommitdiff
path: root/upb/msg.c
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2017-01-21 10:47:58 -0800
committerJosh Haberman <jhaberman@gmail.com>2017-01-21 10:47:58 -0800
commit47da2afd52b0f108085439e3dc8ad5236809fbae (patch)
treecc35bd4029e6204b43062e6b5788c4337f2d49e5 /upb/msg.c
parentc850bc0a4e62c1c9c21c1f6cfe3b8293e64831cf (diff)
Make upb::SymbolTable no longer reference-counted.
This transitions it from shared ownership to unique ownership.
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