[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 authored and GitHub committed 2019-12-12 15:48:27 +03:30
1 parent e75d785b51
commit 3e1a2632dc
1 file changed
+1 -1
+1 -1
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 *