Solved (was: Re: Memory leak in Gtk?)



Joern Reder wrote:

Is this a bug in my program? Or is Gtk leaking here...

It was a bug of mine - after crawling through the documentation again, I
found this

  (Gtk::Gdk::ImlibImage) $image->kill_image

And yes: it does what it sounds like ;)

I call this after getting the pixmap with $image->copy_image: and 
nothing is leaking anymore.

Joern

-- 
Joern Reder - joern zyn de
Development Head ZYN! Coding Division - http://www.zyn.de/joe



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]