lua-users home
lua-l archive

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

On Sun, Aug 24, 2003 at 12:52:05PM +0200, Jardar Johannes Maatje wrote:
> When calling the normalized method in lua a new GamePos2d will be created
> since it is copied by value, but it is never destroyed so a memleak will
> occure.
> Am I doing something wrong or is this a bug in tolua?

Is it perhaps the case that tolua will destroy it when the related lua
object gets garbage collected? So, if your program is not consuming
much memory, the garbage collector isn't being run and it never gets