diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-01-22 01:03:02 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-01-22 01:03:02 -0800 |
commit | c9df91b04a429f9324afeefece28f21e7078e3ac (patch) | |
tree | 28f038af1ed47b0da2b49c78d8def02486da99fa /core/upb_def.h | |
parent | a695b92ccea4b82180ae45d21d7ed4445f7d0769 (diff) |
upb bootstraps again! and with no memory leaks!
Diffstat (limited to 'core/upb_def.h')
-rw-r--r-- | core/upb_def.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/upb_def.h b/core/upb_def.h index 9eb961a..d9bab97 100644 --- a/core/upb_def.h +++ b/core/upb_def.h @@ -77,7 +77,7 @@ INLINE void upb_def_ref(upb_def *def) { if(upb_atomic_ref(&def->refcount) && def->is_cyclic) _upb_def_cyclic_ref(def); } INLINE void upb_def_unref(upb_def *def) { - if(upb_atomic_unref(&def->refcount)) _upb_def_reftozero(def); + if(def && upb_atomic_unref(&def->refcount)) _upb_def_reftozero(def); } /* upb_fielddef ***************************************************************/ |