On Fri Feb 16 07:18:49 2007, AzMoDaN wrote:
Show quoted text> With "$img = screenshot(display=>$disp)" memory for the $img is not freed.
> I have to run "$img->DESTROY()" to have no memory leaks. In the
> documentation there is no information about this, so I suppose it is not
> the right behavior.
> Tested on Debian 3.1 with perl 5.8.4, Imager v0.55 and
> Imager::Screenshot v0.004.
Sorry for the delay in replying to this, I don't seem to have received
this ticket in email.
The image data should be released once the image object goes out of scope.
I'm not sure how calling $img->DESTROY() would release any memory, any
memory released by that should also be released by the object going out
of scope.
There is definitely a memory leak, I'll look into it.
Thanks for the report.
Tony