c6b9340b89
chore: fix memory leak in v8.serialize()
21 lines
816 B
Diff
21 lines
816 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: John Kleinschmidt <jkleinsc@electronjs.org>
|
|
Date: Thu, 1 Sep 2022 21:55:57 -0400
|
|
Subject: fixup for Wc++98-compat-extra-semi
|
|
|
|
Wc++98-compat-extra-semi is turned on for Electron so this
|
|
patch fixes that error in node.
|
|
|
|
diff --git a/src/node_serdes.cc b/src/node_serdes.cc
|
|
index 97917c91c06dc47dfa6be2c194944cdc93e6bd7f..177390a24eb6490b128e22c104014e80f338c9d9 100644
|
|
--- a/src/node_serdes.cc
|
|
+++ b/src/node_serdes.cc
|
|
@@ -32,7 +32,7 @@ namespace serdes {
|
|
v8::ArrayBuffer::Allocator* GetAllocator() {
|
|
static v8::ArrayBuffer::Allocator* allocator = v8::ArrayBuffer::Allocator::NewDefaultAllocator();
|
|
return allocator;
|
|
-};
|
|
+}
|
|
|
|
class SerializerContext : public BaseObject,
|
|
public ValueSerializer::Delegate {
|