[wasm-sample] Free blob data for now
This commit is contained in:
parent
d45a13f101
commit
3bec8dca1c
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include <hb-wasm-api.h>
|
#include <hb-wasm-api.h>
|
||||||
|
|
||||||
|
void free (void*);
|
||||||
|
|
||||||
void debugprint1 (char *s, int32_t);
|
void debugprint1 (char *s, int32_t);
|
||||||
void debugprint2 (char *s, int32_t, 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);
|
debugprint1 ("cmap length", blob.length);
|
||||||
|
|
||||||
|
free (blob.data);
|
||||||
|
|
||||||
buffer_contents_t contents = buffer_copy_contents (buffer);
|
buffer_contents_t contents = buffer_copy_contents (buffer);
|
||||||
|
|
||||||
debugprint1 ("buffer length", contents.length);
|
debugprint1 ("buffer length", contents.length);
|
||||||
|
|
Loading…
Reference in New Issue