[object] Make object inert during destruction

Such that user_data and other finalizers cannot resurrect object
This commit is contained in:
Behdad Esfahbod 2011-05-12 01:19:39 -04:00
parent ee8dd83bb4
commit df077fadd7
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ struct _hb_object_header_t {
if (ref_count.dec () != 1)
return false;
ref_count.init (HB_REFERENCE_COUNT_INVALID_VALUE);
user_data.finish ();
return true;