Re: [Vala] GLib.SList as a property

2009-07-08 Thread Yu Feng
On Tue, 2009-07-07 at 10:50 -0300, Lucas Hermann Negri wrote: Just: But how is h_labels defined? unonwed h_labels? Yu public SListstring labels { get{return h_labels;} set{h_labels = value;} } On Tue, Jul 7, 2009 at 12:44 AM, Yu Fengrainwood...@gmail.com wrote: On Mon, 2009-07-06 at

Re: [Vala] GLib.SList as a property

2009-07-07 Thread Lucas Hermann Negri
Just: public SListstring labels { get{return h_labels;} set{h_labels = value;} } On Tue, Jul 7, 2009 at 12:44 AM, Yu Fengrainwood...@gmail.com wrote: On Mon, 2009-07-06 at 13:08 -0300, Lucas Hermann Negri wrote: I didn't added anything to the list. Just created and destroyed the class that

Re: [Vala] GLib.SList as a property

2009-07-06 Thread Yu Feng
On Sun, 2009-07-05 at 00:55 -0300, Lucas Hermann Negri wrote: Hello, I have a property of GLib.SList type, defined this way: public SListstring labels { get{return h_labels;} set{h_labels = value;} } But this leaks memory. What's the correct way of doing this? I don't think

Re: [Vala] GLib.SList as a property

2009-07-06 Thread Lucas Hermann Negri
I didn't added anything to the list. Just created and destroyed the class that had this property, and it leaked. On Mon, Jul 6, 2009 at 3:28 AM, Yu Fengrainwood...@gmail.com wrote: On Sun, 2009-07-05 at 00:55 -0300, Lucas Hermann Negri wrote: Hello, I have a property of GLib.SList type,

Re: [Vala] GLib.SList as a property

2009-07-06 Thread Yu Feng
On Mon, 2009-07-06 at 13:08 -0300, Lucas Hermann Negri wrote: I didn't added anything to the list. Just created and destroyed the class that had this property, and it leaked. How could it be? Could you post the code? I am confused. Yu On Mon, Jul 6, 2009 at 3:28 AM, Yu

Re: [Vala] GLib.SList as a property

2009-07-05 Thread Lucas Hermann Negri
Thanks, bugs reported. 2009/7/5 Jiří Zárevúcky zarevucky.j...@gmail.com: 2009/7/5 Lucas Hermann Negri kknd...@gmail.com: Hello, I have a property of GLib.SList type, defined this way: public SListstring labels { get{return h_labels;} set{h_labels = value;} } But this leaks memory.

Re: [Vala] GLib.SList as a property

2009-07-04 Thread Lucas Hermann Negri
By the way, about the property of type 'string[]' / GStrv*, I'm aware that it needs to be null terminated, like the 'documenters' property of GtkAboutDialog. On Sun, Jul 5, 2009 at 12:55 AM, Lucas Hermann Negrikknd...@gmail.com wrote: Hello, I have a property of GLib.SList type, defined this

Re: [Vala] GLib.SList as a property

2009-07-04 Thread Jiří Zárevúcky
2009/7/5 Lucas Hermann Negri kknd...@gmail.com: Hello, I have a property of GLib.SList type, defined this way: public SListstring labels { get{return h_labels;} set{h_labels = value;} } But this leaks memory. What's the correct way of doing this? I'd generally avoid using GLib's List