[wasm-api] Clear structs in _free()

This commit is contained in:
Behdad Esfahbod committed 2023-03-31 17:33:44 -06:00
1 parent 099a0150e1
commit af1f41a43e
2 files changed
+7

No files matched your search

+3
View File
@@ -40,6 +40,9 @@ blob_free (HB_WASM_EXEC_ENV
return;
module_free (blob->data);
blob->data = nullref;
blob->length = 0;
}
+4
View File
@@ -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