Closed mvz closed 1 year ago
After the last #unref, derived_instance's struct data may be deallocated, so fetching its refcount field is unreliable. By first increasing the refcount, checking that #unref decreases the refcount can be tested reliably.
#unref
derived_instance
After the last
#unref
,derived_instance
's struct data may be deallocated, so fetching its refcount field is unreliable. By first increasing the refcount, checking that#unref
decreases the refcount can be tested reliably.