diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-11-08 15:45:10 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-11-08 15:45:10 -0200 |
commit | ab5fa213b3912d25e340bf22bb65a825be500aac (patch) | |
tree | 8b0e85a23e2de6d145939913c2b65e4cda6454e5 | |
parent | 39929384c631ba43c12958a7d7f0e0ec4723241f (diff) | |
download | lua-ab5fa213b3912d25e340bf22bb65a825be500aac.tar.gz lua-ab5fa213b3912d25e340bf22bb65a825be500aac.tar.bz2 lua-ab5fa213b3912d25e340bf22bb65a825be500aac.zip |
added patch for last bug
-rw-r--r-- | bugs | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -1880,8 +1880,8 @@ patch = [[ | |||
1880 | +++ lundump.c 2008/04/04 19:51:41 2.7.1.4 | 1880 | +++ lundump.c 2008/04/04 19:51:41 2.7.1.4 |
1881 | @@ -1,5 +1,5 @@ | 1881 | @@ -1,5 +1,5 @@ |
1882 | /* | 1882 | /* |
1883 | -** $Id: bugs,v 1.126 2013/08/30 15:51:12 roberto Exp roberto $ | 1883 | -** $Id: bugs,v 1.127 2013/09/03 15:37:10 roberto Exp roberto $ |
1884 | +** $Id: bugs,v 1.126 2013/08/30 15:51:12 roberto Exp roberto $ | 1884 | +** $Id: bugs,v 1.127 2013/09/03 15:37:10 roberto Exp roberto $ |
1885 | ** load precompiled Lua chunks | 1885 | ** load precompiled Lua chunks |
1886 | ** See Copyright Notice in lua.h | 1886 | ** See Copyright Notice in lua.h |
1887 | */ | 1887 | */ |
@@ -3144,6 +3144,32 @@ since = [[ ]], | |||
3144 | fix = nil, | 3144 | fix = nil, |
3145 | example = [[No example]], | 3145 | example = [[No example]], |
3146 | patch = [[ | 3146 | patch = [[ |
3147 | --- lstate.c 2013/04/12 18:48:47 2.99.1.1 | ||
3148 | +++ lstate.c 2013/11/08 17:39:57 | ||
3149 | @@ -194,2 +194,4 @@ | ||
3150 | g->gcrunning = 1; /* allow gc */ | ||
3151 | + g->version = lua_version(NULL); | ||
3152 | + luai_userstateopen(L); | ||
3153 | } | ||
3154 | @@ -224,2 +226,4 @@ | ||
3155 | luaC_freeallobjects(L); /* collect all objects */ | ||
3156 | + if (g->version) /* closing a fully built state? */ | ||
3157 | + luai_userstateclose(L); | ||
3158 | luaM_freearray(L, G(L)->strt.hash, G(L)->strt.size); | ||
3159 | @@ -289,3 +293,3 @@ | ||
3160 | g->panic = NULL; | ||
3161 | - g->version = lua_version(NULL); | ||
3162 | + g->version = NULL; | ||
3163 | g->gcstate = GCSpause; | ||
3164 | @@ -308,4 +312,2 @@ | ||
3165 | } | ||
3166 | - else | ||
3167 | - luai_userstateopen(L); | ||
3168 | return L; | ||
3169 | @@ -317,3 +319,2 @@ | ||
3170 | lua_lock(L); | ||
3171 | - luai_userstateclose(L); | ||
3172 | close_state(L); | ||
3147 | ]] | 3173 | ]] |
3148 | } | 3174 | } |
3149 | ]=]=] | 3175 | ]=]=] |