Re: [Vala] Another interesting List error



On Don, 2006-08-31 at 10:12 +0200, Jürg Billeter wrote:
On Mit, 2006-08-30 at 22:38 -0500, Cayle Graumann wrote:
The problem lies in the makeList() method in combination with the
unfinished work regarding memory management in generic containers. What
currently happens is that ListElement instances get destroyed right
after adding them to the list. The reason is that generic type arguments
default not to be owned by the container in local variables, they
default to be owned by the container in fields, though. I will probably
change it to always default to be owned as this seems to be a more
sensible and not that irritating default.

Fixed in SVN.

Jürg




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