Skip to content

Commit 76a6b08

Browse files
Revert "fix memory leak"
This reverts commit afedfff.
1 parent afedfff commit 76a6b08

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/pyTypeFactory.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ PyObject *callJSFunc(PyObject *jsCxThisFuncTuple, PyObject *args) {
213213
JS::HandleValueArray jsArgs(jsArgsVector);
214214
JS::Rooted<JS::Value> *jsReturnVal = new JS::Rooted<JS::Value>(cx);
215215
if (!JS_CallFunctionValue(cx, *thisObj, *jsFunc, jsArgs, jsReturnVal)) {
216-
delete thisObj;
217216
setSpiderMonkeyException(cx);
218217
return NULL;
219218
}

0 commit comments

Comments
 (0)