Bug 3587 - TreeView is leaking because of Gtk#
Summary: TreeView is leaking because of Gtk#
Alias: None
Product: Gtk#
Classification: Mono
Component: gtk-sharp ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-02-22 10:57 UTC by Alan McGovern
Modified: 2016-09-13 21:13 UTC (History)
5 users (show)

Tags: gtk
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alan McGovern 2012-02-22 10:57:54 UTC
our impl of gtk_tree_selection_get_selected_rows is leaking a GList* and all contents i think. The docs for the method say: http://developer.gnome.org/gtk/2.24/GtkTreeSelection.html#gtk-tree-selection-get-selected-rows

Gtk# implements the method like so:

The List ctor defaults to 'unowned' which means neither the list nor its contents will ever be freed.
Comment 1 Marius Ungureanu 2013-11-24 10:58:33 UTC
Added Cody.

Comment 2 Cody Russell 2013-11-25 09:27:51 UTC
Comment 3 Marius Ungureanu 2016-09-13 21:13:31 UTC
Fixed via https://github.com/mono/gtk-sharp/pull/161