2005-08-22 Ben Maurer <bmaurer@novell.com>

* gtk/NodeView.cs: Fix leak here. r=mkestner


svn path=/trunk/gtk-sharp/; revision=48682
This commit is contained in:
Ben Maurer 2005-08-22 17:06:01 +00:00
parent 349de99a82
commit 3fb0631c4e
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-08-22 Ben Maurer <bmaurer@novell.com>
* gtk/NodeView.cs: Fix leak here. r=mkestner
2005-08-22 Mike Kestner <mkestner@novell.com> 2005-08-22 Mike Kestner <mkestner@novell.com>
* parser/gapi2xml.pl : handle "type const *" parameters. * parser/gapi2xml.pl : handle "type const *" parameters.

View file

@ -31,6 +31,7 @@ namespace Gtk {
public class NodeView : TreeView { public class NodeView : TreeView {
NodeStore store; NodeStore store;
NodeSelection selection;
public NodeView (NodeStore store) : base (IntPtr.Zero) public NodeView (NodeStore store) : base (IntPtr.Zero)
{ {
@ -49,7 +50,9 @@ namespace Gtk {
public NodeSelection NodeSelection { public NodeSelection NodeSelection {
get { get {
return new NodeSelection (Selection); if (selection == null)
selection = new NodeSelection (Selection);
return selection;
} }
} }