[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: Jules Bean <jules@...>
- Date: Sun, 24 Aug 2003 18:02:04 +0100
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