From a503b8859c37906ab5012db163daca43bfe393bb Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 21 May 2011 17:35:21 -0700 Subject: Make all handlers objects refcounted. I'm realizing that basically all upb objects will need to be refcounted to be sharable across languages, but *not* messages which are on their way out so we can get out of the business of data representations. Things which must be refcounted: - encoders, decoders - handlers objects - defs --- src/upb_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_string.c') diff --git a/src/upb_string.c b/src/upb_string.c index 8625f76..122eec4 100644 --- a/src/upb_string.c +++ b/src/upb_string.c @@ -35,7 +35,7 @@ upb_string *upb_string_new() { str->size = 0; #endif str->src = NULL; - upb_atomic_refcount_init(&str->refcount, 1); + upb_atomic_init(&str->refcount, 1); return str; } -- cgit v1.2.3