aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index ab2b7bb5..41a0f997 100644
--- a/lstate.c
+++ b/lstate.c
@@ -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) {
159static void close_state (lua_State *L) { 159static 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);