[unscribe] fix leak issue

with no user_data provided, `free` will be called with `(0)` thus silently having a leak
This commit is contained in:
Ebrahim Byagowi 2019-12-12 15:48:27 +03:30 committed by GitHub
parent e75d785b51
commit 3e1a2632dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,7 +453,7 @@ _hb_rename_font (hb_blob_t *blob, wchar_t *new_name)
hb_blob_destroy (blob);
return hb_blob_create ((const char *) new_sfnt_data, new_length,
HB_MEMORY_MODE_WRITABLE, nullptr, free);
HB_MEMORY_MODE_WRITABLE, new_sfnt_data, free);
}
hb_uniscribe_face_data_t *