Here are the modifications made to the unit:

   - resource leak in TJpegDecode.ToBitmap fixed (thanks Esmond for the report)
   - potential GPF issue fixed in TJpegDecode.Free

Source code is available from http://synopse.info/files/jpegdec.zip