From: Steve C. <ste...@ya...> - 2004-06-09 06:07:38
|
On Tue, 2004-06-08 at 21:53, John Hunter wrote: > >>>>> "Steve" == Steve Chaplin <ste...@ya...> writes: > > Steve> There does seem to be a memory problem when using Python > Steve> and GTK+. Have you seen the pygtk FAQ 8.4 "Is there a > Steve> resource leak? Why do I run out of memory using Pixbuf?" > > I submitted a patch to fix a pygtk memory leak in get_image that was > incorporated into pygtk 2.2. > > http://bugzilla.gnome.org/show_bug.cgi?id=133681 > > Which version are you using? Do you still see a problem with pygtk > 2.2 or later? Thanks for the link. I'm using pygtk from cvs and ran a test for myself to check that get_image() no longer leaks memory. I think the FAQ 8.4 reports a memory inefficiency problem, not a memory leak. It shows a loop where you quickly allocate memory and can use a large amount of system memory before the Python garbage collector has a chance to free the unused memory. Steve |