From 3e1a2632dce396157a4e8ff6669740a145e7062c Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 12 Dec 2019 15:48:27 +0330 Subject: [PATCH] [unscribe] fix leak issue with no user_data provided, `free` will be called with `(0)` thus silently having a leak --- src/hb-uniscribe.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc index e93cf7f41..d2204cbad 100644 --- a/src/hb-uniscribe.cc +++ b/src/hb-uniscribe.cc @@ -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 *