Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: src/wasm/managed.h

Issue 2424623002: [wasm] Use a Managed<WasmModule> to hold metadata about modules. (Closed)
Patch Set: [wasm] Use a Managed<WasmModule> to hold metadata about modules. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/snapshot/code-serializer.cc ('k') | src/wasm/module-decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/managed.h
diff --git a/src/wasm/managed.h b/src/wasm/managed.h
index 09ddf60aaa6506d73ac59c20727d613a691b98d6..785d5d32c0ac314349d8f0b5a1ad2ed318a78d06 100644
--- a/src/wasm/managed.h
+++ b/src/wasm/managed.h
@@ -46,6 +46,7 @@ class Managed : public Foreign {
Managed<CppType>** p =
reinterpret_cast<Managed<CppType>**>(data.GetParameter());
delete (*p)->get();
+ (*p)->set_foreign_address(0);
GlobalHandles::Destroy(reinterpret_cast<Object**>(p));
}
};
« no previous file with comments | « src/snapshot/code-serializer.cc ('k') | src/wasm/module-decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698