[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Anybody had problems with memleak with tolua (for lua 4)
- From: Jardar Johannes Maatje <maatje@...>
- Date: Mon, 25 Aug 2003 09:58:07 +0200 (CEST)
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
>