diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.102 2002/08/06 15:32:22 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.103 2002/08/07 19:22:39 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -159,7 +159,7 @@ void luaE_closethread (lua_State *OL, lua_State *L) { | |||
159 | static void close_state (lua_State *L) { | 159 | static void close_state (lua_State *L) { |
160 | luaF_close(L, L->stack); /* close all upvalues for this thread */ | 160 | luaF_close(L, L->stack); /* close all upvalues for this thread */ |
161 | if (G(L)) { /* close global state */ | 161 | if (G(L)) { /* close global state */ |
162 | luaC_collect(L, 1); /* collect all elements */ | 162 | luaC_sweep(L, 1); /* collect all elements */ |
163 | lua_assert(G(L)->rootproto == NULL); | 163 | lua_assert(G(L)->rootproto == NULL); |
164 | lua_assert(G(L)->rootudata == NULL); | 164 | lua_assert(G(L)->rootudata == NULL); |
165 | lua_assert(G(L)->rootcl == NULL); | 165 | lua_assert(G(L)->rootcl == NULL); |