Minor leak in fpexif
Original Reporter info from Mantis: mike.cornflake
-
Reporter name: Mike Thompson
Original Reporter info from Mantis: mike.cornflake
- Reporter name: Mike Thompson
Description:
Looks like someone accidentally typed except instead of finally.
Original code read:
reader := TIptcReader.Create(self);
try
FIptcData := CreateIptcData;
try
reader.ReadFromStream(AStream, ifJpeg);
except
FreeAndNil(FIptcData);
raise;
end;
except // <---- this is line I think should be finally
reader.Free;
end;
Steps to reproduce:
Load a jpg with the correct metadata
Additional information:
I've been processing large sets of files - and at this stage I don't know which files tripped the leak. If it's needed I can hunt down the image and upload.
Mantis conversion info:
- Mantis ID: 34537