reset observances_lean on cleanup as well

This commit is contained in:
Axel Kittenberger 2010-11-25 22:34:36 +00:00
parent e159bf5f31
commit 150616406e
1 changed files with 5 additions and 3 deletions

View File

@ -921,7 +921,6 @@ l_configure(lua_State *L)
return 0; return 0;
} }
static const luaL_reg lsyncdlib[] = { static const luaL_reg lsyncdlib[] = {
{"addtoclock", l_addtoclock }, {"addtoclock", l_addtoclock },
{"clockbefore", l_clockbefore }, {"clockbefore", l_clockbefore },
@ -946,13 +945,13 @@ static const luaL_reg lsyncdlib[] = {
* Dummy variable whos address is used as the cores index in the lua registry * Dummy variable whos address is used as the cores index in the lua registry
* to the lua runners function table in the lua registry. * to the lua runners function table in the lua registry.
*/ */
static int runner; static int runner = 0;
/** /**
* Dummy variable whos address is used as the cores index n the lua registry * Dummy variable whos address is used as the cores index n the lua registry
* to the lua runners error handler. * to the lua runners error handler.
*/ */
static int callError; static int callError = 0;
/** /**
* Pushes a function from the runner on the stack. * Pushes a function from the runner on the stack.
@ -1521,6 +1520,9 @@ main1(int argc, char *argv[])
obs->tidy(obs); obs->tidy(obs);
} }
} }
observances_len = 0;
nonobservances_len = 0;
observance_action = false;
} }
{ {
/* frees logging categories */ /* frees logging categories */