[Gimp-developer] memory manage in python-fu
David Gowers
00ai99 at gmail.com
Sun Mar 11 17:57:07 PDT 2007
On 3/12/07, D. Stimits <stimits at comcast.net> wrote:
>
>
> I have not found any python-fu way to "close" a file, or to reclaim
> memory after creating an image or layer. Is there such a thing? Is there
> instead some sort of garbage collection?
hahahaha!
gimp.delete(image)
or
gimp.delete(layer) #only do this if the layer isn't attached to an image. If
it is attached to an image, then deleting the image will delete all the
layers and other things -- no need to delete them directly.
This *is* in the pygimp documentation (plug-ins/pygimp/doc/pygimp.html in
the source tree)! RTFM!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /lists/gimp-developer/attachments/20070312/626800e7/attachment.html
More information about the Gimp-developer
mailing list