in reply to Re^2: Hunting for a memory leakin thread Hunting for a memory leak
# Make sure $img doesn't get released. # Only define new object the first time around. state $img; if (! defined $img) { $img = $MW->Photo(); } [download]