[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Memory issue in luaL_loadbuffer()
- From: Dive Florida <divefloridaus@...>
- Date: Thu, 21 Jun 2007 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.