[wasm-sample] Free blob data for now

This commit is contained in:
Behdad Esfahbod committed 2023-03-31 17:33:44 -06:00
1 parent d45a13f101
commit 3bec8dca1c
1 file changed
+4
+4
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);