medInria/medInria-public — pull request #126 by gpasquie (2013-12-09 15:59:41+00:00)
Title: Valgrind errors cleaning

I started a branch to try to clean Valgrind errors.
Most of the errors are not related to our code but some are, and it's kind of difficult to find them when you get hundreds od errors. I corrected some of them and created a valgrind suppression file to start filtering the ohers.

For those using QtCreator, you can try this suppression file by editing valgrind properties: Tools > Options > Analyser > Suppression file. Hopefully, you should get less errors. (For now I just tried to open an image in medInria)

I've spent some time to try to correct one error that seem related to our code, but couldn't find the solution.If someone wants to try...You should get dozens of errors like: "Conditional jump or move depends on uninitialised value(s) in vtkImageView::GetValueAtPosition(double*, int, int) in src-plugins/libs/vtkInria/vtkImageView/vtkImageView.cxx:1110". I tried to intiialize the variables with memset, or to change the methods used, but withou success. Does someone have an idea of what's wrong there?