Fixed leakage of resources allocated by EXIF library