File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,20 +48,20 @@ struct InternalFieldInfo {
48
48
49
49
static InternalFieldInfo* New (EmbedderObjectType type, size_t length) {
50
50
InternalFieldInfo* result =
51
- reinterpret_cast <InternalFieldInfo*>(::operator new (length));
51
+ reinterpret_cast <InternalFieldInfo*>(::operator new [] (length));
52
52
result->type = type;
53
53
result->length = length;
54
54
return result;
55
55
}
56
56
57
57
InternalFieldInfo* Copy () const {
58
58
InternalFieldInfo* result =
59
- reinterpret_cast <InternalFieldInfo*>(::operator new (length));
59
+ reinterpret_cast <InternalFieldInfo*>(::operator new [] (length));
60
60
memcpy (result, this , length);
61
61
return result;
62
62
}
63
63
64
- void Delete () { ::operator delete (this ); }
64
+ void Delete () { ::operator delete[] (this ); }
65
65
};
66
66
67
67
// An interface for snapshotable native objects to inherit from.
You can’t perform that action at this time.
0 commit comments