diff --git a/v8go.cc b/v8go.cc index a89d3324..e1144886 100644 --- a/v8go.cc +++ b/v8go.cc @@ -197,7 +197,7 @@ SnapshotBlob* CreateSnapshot(const char* source, const char* origin, int functio } void SnapshotBlobDelete(SnapshotBlob* ptr) { - delete ptr->data; + delete[] ptr->data; delete ptr; }