32/64 bit memory ref cleanup, part 3: GCproto ->lineinfo.
This commit is contained in:
@@ -37,7 +37,7 @@ GCproto *lj_func_newproto(lua_State *L)
|
||||
pt->sizeuvname = 0;
|
||||
pt->linedefined = 0;
|
||||
pt->lastlinedefined = 0;
|
||||
pt->lineinfo = NULL;
|
||||
setmref(pt->lineinfo, NULL);
|
||||
pt->varinfo = NULL;
|
||||
setmref(pt->uvname, NULL);
|
||||
setgcrefnull(pt->chunkname);
|
||||
@@ -52,7 +52,7 @@ void LJ_FASTCALL lj_func_freeproto(global_State *g, GCproto *pt)
|
||||
lj_mem_free(g, mref(pt->k, GCRef) - nkgc, sizek);
|
||||
lj_mem_freevec(g, proto_bc(pt), pt->sizebc, BCIns);
|
||||
lj_mem_freevec(g, proto_uv(pt), pt->sizeuv, uint16_t);
|
||||
lj_mem_freevec(g, pt->lineinfo, pt->sizelineinfo, int32_t);
|
||||
lj_mem_freevec(g, proto_lineinfo(pt), pt->sizelineinfo, BCLine);
|
||||
lj_mem_freevec(g, pt->varinfo, pt->sizevarinfo, struct VarInfo);
|
||||
lj_mem_freevec(g, mref(pt->uvname, GCRef), pt->sizeuvname, GCRef);
|
||||
lj_trace_freeproto(g, pt);
|
||||
|
||||
Reference in New Issue
Block a user