lua-users home
lua-l archive

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


Hey folks,

The EPOCLua version of iolib causes a "memory leak" of sorts: lua's iolib
utilizes EPOC's STDLIB library, but there is no explicit call to (the OS
function) CloseSTDLIB() before program-exit.  If STDLIB is used w/out a call
to CloseSTDLIB() before your app is exited, then the app -may- leak memory.

I went ahead and just stuck a "CloseSTDLib()" in my C++ "wrapper" around the
Lua library, rather than making another EPOC-specific code-modification to
the lua build.

Just a quick FYI since I didn't see this particular "memory leak" documented
anywhere - even the Symbian documentation is rather curt on the whole STDLIB
cleanup issue.

Happy Lua'ing! :)

-andrew