If I have the following code in a OnPrepareImageforSaving event
It seems to leak a Bitmap, Jpeg and Memorystream when the image contains a bitmap (sametext(wpo.FileExtension, 'bmp')). I don't have the full source so I'm not sure what's going on, but I presume it is a problem with the conversion of the bitmap to a jpeg. The code is part of my conversion to an HTML email.
Version 7.33.1
Alister.