Re: [Gimp-developer] Python FU Scripting -- Memory Leak? or How to release python gimp objects properly to manage memory usage?

Hi Tom,

On Thu, Feb 16, 2012 at 3:12 PM, Tom Vrankar <twv cox net> wrote:
> img =gp.gimp_image_new (1280, 720, 0)
> dsp =gp.gimp_display_new (img)
> lyr =gp.gimp_layer_new_from_drawable (src.layers[1], img)
> img.insert_layer (lyr, position =0)
> gp.gimp_display_delete (dsp)

..You are creating one image after another, and never destroying them
(gimp_image_delete, IIRC.)


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