[Gtk-sharp-list] Gtk.Image.Pixbuf memory leak

Jason Smith jassmith at gmail.com
Mon Aug 4 14:15:15 EDT 2008


Sorry, meant to reply on the list.  Is there a work around for this?  I
can't just tell my users to use GTK# trunk.

Jason

On Mon, 2008-08-04 at 12:07 -0500, Mike Kestner wrote:
> On Mon, 2008-08-04 at 11:08 -0400, Jason Smith wrote:
> > The following code, which I use purely for demostration, produces a
> > memory leak of the entire pixbuf that I load into a Gtk.Image.
> > 
> > protected virtual void OnButton1Clicked (object sender, System.EventArgs
> > e)
> > {
> > 	Gdk.Pixbuf pixbuf = IconTheme.Default.LoadIcon
> 
> LoadIcon wasn't marked as an owned return value.  Fixed on trunk
> revision 109594.
> 
> Mike
> 



More information about the Gtk-sharp-list mailing list