aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/include/emscripten/wire.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/include/emscripten/wire.h b/system/include/emscripten/wire.h
index cee0f539..89b18d77 100644
--- a/system/include/emscripten/wire.h
+++ b/system/include/emscripten/wire.h
@@ -185,6 +185,9 @@ namespace emscripten {
static std::string fromWireType(char* v) {
return std::string(v);
}
+ static void destroy(WireType v) {
+ delete v;
+ }
};
template<typename T>