From f74534b42ac9ac8b0ff496cb0da83f1201bbf8da Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 8 May 2011 13:05:12 -0700 Subject: Decoder redesign in preparation for packed fields and start/endseq. --- src/upb_string.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/upb_string.h') diff --git a/src/upb_string.h b/src/upb_string.h index 5aa5f3b..e017268 100644 --- a/src/upb_string.h +++ b/src/upb_string.h @@ -182,6 +182,11 @@ INLINE void upb_string_recycle(upb_string **_str) { str->len = 0; _upb_string_release(str); } else { + //if (!str) { + // printf("!str\n"); + //} + //else if (upb_atomic_read(&str->refcount) != 1) { printf("refcount: %d\n", upb_atomic_read(&str->refcount)); } + //else { printf("Some other reason.\n"); } upb_string_unref(str); *_str = upb_string_new(); } -- cgit v1.2.3