mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[wasm-api] Clear structs in _free()
This commit is contained in:
1 parent
099a0150e1
commit
af1f41a43e
2 files changed
+7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user