[object] Make object inert during destruction

Such that user_data and other finalizers cannot resurrect object
This commit is contained in:
Behdad Esfahbod committed 2011-05-12 01:19:39 -04:00
1 parent ee8dd83bb4
commit df077fadd7
1 file changed
+2
+2
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;