This is from Thumbnail.aspx.cs, around line 110
// Resize while retaining image quality.
// Provided by Jan Emil Christiansen.
//Fix Memory leak by not Disposing image before newing it.
Bitmap newImage = new Bitmap( image, size);
image.Dispose();
image = newImage;
}
Also in the same module, in the DrawWatermark method:
Kirby -
Here's the major memory leak that I fixed...
This is from Thumbnail.aspx.cs, around line 110
// Resize while retaining image quality.
// Provided by Jan Emil Christiansen.
//Fix Memory leak by not Disposing image before newing it.
Bitmap newImage = new Bitmap( image, size);
image.Dispose();
image = newImage;
}
Also in the same module, in the DrawWatermark method:
image = bmWatermark;
//Dispose everything
imageAttributes.Dispose();
grWatermark.Dispose();
imgWatermark.Dispose();
bmWatermark.Dispose();
}
Chris