Memory issue in luaL_loadbuffer()
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Memory issue in luaL_loadbuffer()
- From: Dive Florida <divefloridaus@...>
- Date: 2007年6月21日 11:28:12 -0700 (PDT)
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.