[object] Make object inert during destruction
Such that user_data and other finalizers cannot resurrect object
This commit is contained in:
parent
ee8dd83bb4
commit
df077fadd7
|
@ -170,6 +170,8 @@ struct _hb_object_header_t {
|
||||||
if (ref_count.dec () != 1)
|
if (ref_count.dec () != 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
ref_count.init (HB_REFERENCE_COUNT_INVALID_VALUE);
|
||||||
|
|
||||||
user_data.finish ();
|
user_data.finish ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue