Re: [Vala] Working with GLib.List and memory management



It is some sort of a bug (or a feature). Vala inserts g_object_ref in generated C-code after myList.prepend(myWidget); but it doesn't decrease ref_counter after remove. The only way is to use g_object_unref manually.


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