[vtk-developers] Mismatched free/delete in vtkQImageToImageSource.cxx
Bill Lorensen
bill.lorensen at gmail.com
Tue Jan 19 08:50:28 EST 2010
Folks,
valgrind is reporting Mismatched free() / delete / delete []
here:
http://www.cdash.org/CDash/viewDynamicAnalysisFile.php?id=528787
It seems that in vtkQImageToImageSource::RequestData() the call:
array->SetVoidArray( data, 4*width*height, 0);
should be
array->SetVoidArray( data, 4*width*height, 0,
vtkUnsignedCharArray::VTK_DATA_ARRAY_DELETE);
since data is allocated with new and not malloc/calloc.
Could someone that uses Qt look try this fix and see if it compiles?
If sop, check it in?
Thanks,
Bill
More information about the vtk-developers
mailing list