forked from mia/Aegisub
Fix crash when cancelling an automation script
This commit is contained in:
parent
7651e83314
commit
a28aafcdab
1 changed files with 3 additions and 2 deletions
|
@ -717,9 +717,10 @@ namespace Automation4 {
|
|||
ps->Log("\n\nLua reported a runtime error:\n");
|
||||
ps->Log(get_string_or_default(L, -1));
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
lua_pop(L, 2);
|
||||
failed = true;
|
||||
}
|
||||
else
|
||||
lua_remove(L, -nresults - 1);
|
||||
|
||||
lua_gc(L, LUA_GCCOLLECT, 0);
|
||||
|
|
Loading…
Reference in a new issue