mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[wasm-sample] Free blob data for now
This commit is contained in:
1 parent
d45a13f101
commit
3bec8dca1c
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user