Re: [Vala] Problem creating VAPI file for XcbIcccm (extra data)

2013-12-13 Thread Luca Bruno
On 12/12/2013 23:52, rastersoft wrote: BTW: The whole VAPI file is this: using Xcb; [CCode (lower_case_cprefix = xcb_icccm_, cheader_filename = xcb/xcb_icccm.h)] namespace XcbIcccm { public Xcb.GetPropertyCookie get_wm_class(Connection conn, Window window); public

Re: [Vala] Problem creating VAPI file for XcbIcccm (extra data)

2013-12-13 Thread rastersoft
That was the solution: mark the fields as unowned. Thanks!!! El 13/12/13 09:18, Luca Bruno escribió: On 12/12/2013 23:52, rastersoft wrote: BTW: The whole VAPI file is this: using Xcb; [CCode (lower_case_cprefix = xcb_icccm_, cheader_filename = xcb/xcb_icccm.h)] namespace XcbIcccm {

[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: {