fix(fwData/Image): deep copy
What does this MR do?
- Fixes an assert raised in debug when the image is locked and deep copied.
- Don't let the data array expire.
- Add a test to ensure this doesn't happen again.
- Fix ExDump.
How to test it?
- Build in debug mode.
- Run
fwDataTest
- Run ExDump, load any image.
You can also move to this commit (69f40644) to test the deep copy without the fix.
- Run
fwDataTest
. - It crashes : https://git.ircad.fr/Sight/sight/-/jobs/339049.