diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/jim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helper/jim.c b/src/helper/jim.c index aa6382a9..d999c696 100644 --- a/src/helper/jim.c +++ b/src/helper/jim.c @@ -2828,6 +2828,9 @@ void FreeScriptInternalRep(Jim_Interp *interp, Jim_Obj *objPtr) int i; struct ScriptObj *script = (void*) objPtr->internalRep.ptr; + if (!script) + return; + script->inUse--; if (script->inUse != 0) return; for (i = 0; i < script->len; i++) { |