Re: [Vala] delegate variable "feature" or vala bug

2013-12-14 Thread Evan Nemerson
On Sat, 2013-12-14 at 15:25 +0800, Nor Jaidi Tuah wrote: > Dear all, > > I had a memory leak in my app that I traced to > a delegate variable. Something like this: > >class X { > delegate void Delegate (); > Delegate d; > > public void xx () { > d = () => { do_stuf

[Vala] delegate variable "feature" or vala bug

2013-12-13 Thread Nor Jaidi Tuah
Dear all, I had a memory leak in my app that I traced to a delegate variable. Something like this: class X { delegate void Delegate (); Delegate d; public void xx () { d = () => { do_stuff ();}; } } Given the above, the following will leak memory: {