Skip to content

Commit

Permalink
issue #26: fix Interp teardown bug; similar to issue #23
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 3086658242584f820b361ef0e2c52a8171d1c026575dd5d943890d7a661c08f9
  • Loading branch information
pmacdona committed Oct 22, 2020
1 parent f6ef9e8 commit 6dbffe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsiInterp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1894,13 +1894,13 @@ static Jsi_RC jsiInterpDelete(Jsi_Interp* interp, void *unused)
}
Jsi_DecrRefCountIF(interp, interp->nullFuncArg);
Jsi_DecrRefCountIF(interp, interp->NullValue);
Jsi_OptionsFree(interp, InterpOptions, interp, 0);
if (interp->Function_prototype_prototype) {
if (interp->Function_prototype_prototype->refCnt>1)
Jsi_DecrRefCountIF(interp, interp->Function_prototype_prototype);
Jsi_DecrRefCountIF(interp, interp->Function_prototype_prototype);
}
Jsi_DecrRefCountIF(interp, interp->Object_prototype);
Jsi_OptionsFree(interp, InterpOptions, interp, 0);
Jsi_HashDeleteIF(interp->regexpTbl);
Jsi_HashDeleteIF(interp->userdataTbl);
Jsi_HashDeleteIF(interp->eventTbl);
Expand Down

0 comments on commit 6dbffe1

Please sign in to comment.