lua-users home
lua-l archive

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


That might be, but shouldn't the gc be run in the end to prevent any
memleaks?

Jardar

On Sun, 24 Aug 2003, Jules Bean wrote:

> 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
> destroyed?
>
> Jules
>