lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


If I call luaL_loadbuffer() with a buffer just allocated, can I delete this buffer after the call?
 
For example, is the following code ok?
 
buf = new char [size];
luaL_loadbuffer(L, buf, size, "test");
delete [] buf;


Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.