[wasm-sample] Free blob data for now

This commit is contained in:
Behdad Esfahbod 2023-02-23 14:35:01 -07:00
parent d45a13f101
commit 3bec8dca1c
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#include <hb-wasm-api.h>
void free (void*);
void debugprint1 (char *s, int32_t);
void debugprint2 (char *s, int32_t, int32_t);
@ -14,6 +16,8 @@ shape (font_t font, buffer_t buffer)
debugprint1 ("cmap length", blob.length);
free (blob.data);
buffer_contents_t contents = buffer_copy_contents (buffer);
debugprint1 ("buffer length", contents.length);