Fixes memory leak in ExifManager::parse

Fixes #4375
This commit is contained in:
Morgan Hardwood
2018-02-07 14:51:12 +01:00
parent 12261b5796
commit 4579d4be14

View File

@@ -3077,7 +3077,7 @@ void ExifManager::parse (bool isRaw, bool skipIgnored)
root->printAll ();
#endif
} while (ifdOffset && !onlyFirst);
} while (ifdOffset > 0 && !onlyFirst);
// Security check : if there's at least one root, there must be at least one image.
// If the following occurs, then image detection above has failed or it's an unsupported file type.