Skip to content

Commit 6a40af0

Browse files
committed
SERVER-4807: fix type for delete
1 parent d841b9e commit 6a40af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongo/scripting/engine_v8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace mongo {
5454
if (!p.IsNearDeath())
5555
return;
5656
Handle<External> field = Handle<External>::Cast(p->ToObject()->GetInternalField(0));
57-
BSONObj* data = (BSONObj*) field->Value();
57+
BSONHolder* data = (BSONHolder*) field->Value();
5858
delete data;
5959
p.Dispose();
6060
}

0 commit comments

Comments
 (0)