Re: [Vala] Is IconView.get_selected_items () memory leak?

2010-01-15 Thread Jan Hudec
On Fri, Jan 15, 2010 at 21:11:14 +0800, xiaohu wrote: > I have below vala code: > > public void on_iconview_selection_changed (IconView iconview) > { > unowned List list = iconview.get_selected_items (); ^^^ Obviously the list must be owned to have vala free it.

[Vala] Is IconView.get_selected_items () memory leak?

2010-01-15 Thread xiaohu
I have below vala code: public void on_iconview_selection_changed (IconView iconview) { unowned List list = iconview.get_selected_items (); if (list == null || list.length () == 0) return; var model = iconview.get_model (); TreeIter iter; if (mode