[wasm-api] Clear structs in _free()
diff --git a/src/hb-wasm-api-blob.hh b/src/hb-wasm-api-blob.hh
index e9aff89..fbff0ff 100644
--- a/src/hb-wasm-api-blob.hh
+++ b/src/hb-wasm-api-blob.hh
@@ -40,6 +40,9 @@
     return;
 
   module_free (blob->data);
+
+  blob->data = nullref;
+  blob->length = 0;
 }
 
 
diff --git a/src/hb-wasm-api-buffer.hh b/src/hb-wasm-api-buffer.hh
index 9491951..07d7ab4 100644
--- a/src/hb-wasm-api-buffer.hh
+++ b/src/hb-wasm-api-buffer.hh
@@ -43,6 +43,10 @@
 
   module_free (contents->info);
   module_free (contents->pos);
+
+  contents->info = nullref;
+  contents->pos = nullref;
+  contents->length = 0;
 }
 
 void