mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[wasm-api] Clear structs in _free()
This commit is contained in:
parent
099a0150e1
commit
af1f41a43e
2 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,9 @@ blob_free (HB_WASM_EXEC_ENV
|
|||
return;
|
||||
|
||||
module_free (blob->data);
|
||||
|
||||
blob->data = nullref;
|
||||
blob->length = 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -43,6 +43,10 @@ buffer_contents_free (HB_WASM_EXEC_ENV
|
|||
|
||||
module_free (contents->info);
|
||||
module_free (contents->pos);
|
||||
|
||||
contents->info = nullref;
|
||||
contents->pos = nullref;
|
||||
contents->length = 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Reference in a new issue