mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Add hb_object_fini()
This commit is contained in:
1 parent
bd5f918e2f
commit
17618ee2ec
1 file changed
+6
-1
@@ -165,9 +165,14 @@ static inline bool hb_object_destroy (Type *obj)
|
||||
if (obj->header.ref_count.dec () != 1)
|
||||
return false;
|
||||
|
||||
hb_object_fini (obj);
|
||||
return true;
|
||||
}
|
||||
template <typename Type>
|
||||
static inline void hb_object_fini (Type *obj)
|
||||
{
|
||||
obj->header.ref_count.finish (); /* Do this before user_data */
|
||||
obj->header.user_data.finish ();
|
||||
return true;
|
||||
}
|
||||
template <typename Type>
|
||||
static inline bool hb_object_set_user_data (Type *obj,
|
||||
|
||||
Reference in new issue
Block a user