Re: [Vala] TreePath from TreeView.get_cursor() never freed?
- From: Yu Feng <rainwoodman gmail com>
- To: gj_alsem yahoo com
- Cc: vala-list gnome org
- Subject: Re: [Vala] TreePath from TreeView.get_cursor() never freed?
- Date: Sun, 05 Oct 2008 11:43:15 -0400
On Sun, 2008-10-05 at 06:00 -0700, Geert Jan wrote:
Hello,
This doesn't seem right to me. When in Vala I write:
weak TreePath path;
What about make it strong?
TreePath path;
weak TreeViewColumn focus_column;
treeview.get_cursor (out path, out focus_column);
...it generates the following C code:
GtkTreePath* path;
GtkTreeViewColumn* focus_column;
path = NULL;
focus_column = NULL;
gtk_tree_view_get_cursor (GTK_TREE_VIEW (treeview), &path, &focus_column);
The GtkTreePath* path in the C code is never freed, even though the GTK documentation on
gtk_tree_view_get_cursor() clearly states: "The returned GtkTreePath must be freed with
gtk_tree_path_free() when you are done with it."
Am I missing something or is this a bug in Vala?
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]