# Make sure $img doesn't get released. # Only define new object the first time around. state $img; if (! defined $img) { $img = $MW->Photo(); }
In reply to Re^3: Hunting for a memory leak
by zentara
in thread Hunting for a memory leak
by perldough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |