mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 09:09:13 +01:00
[draw] Destroy callback data
This commit is contained in:
1 parent
5c558586eb
commit
cdf1cb35db
1 file changed
+6
@@ -157,6 +157,12 @@ hb_draw_funcs_destroy (hb_draw_funcs_t *dfuncs)
|
||||
{
|
||||
if (!hb_object_destroy (dfuncs)) return;
|
||||
|
||||
#define HB_DRAW_FUNC_IMPLEMENT(name) \
|
||||
if (dfuncs->destroy.name) dfuncs->destroy.name (dfuncs->user_data.name);
|
||||
HB_DRAW_FUNCS_IMPLEMENT_CALLBACKS
|
||||
#undef HB_DRAW_FUNC_IMPLEMENT
|
||||
|
||||
|
||||
hb_free (dfuncs);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user