Looking in the POD for Tk::Image it says:
CAVEATS It's necessary to use the "delete" method to delete an image object and free memory associated with it. Just using a lexical variable for storing the image object and letting the variable to go out of scope or setting to undef is not sufficient.
That said, I tried adding
$ZC->centerTags($dwg); $img->delete; undef $img;
And it made no difference.
In reply to Re^3: Hunting for a memory leak
by BrowserUk
in thread Hunting for a memory leak
by perldough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |