Add missing call to cleanup()

This commit is contained in:
LemonBoy 2018-07-13 14:55:35 +02:00
commit 8d4b0b34dd

View file

@ -612,6 +612,7 @@ proc execTask*(scriptName, taskName: string,
if prc.isNil:
# Procedure not defined in the NimScript module.
result.success = false
cleanup()
return
when finalApi:
discard vm.execProc(PCtx(graph.vm), prc, [])