[vtk-developers] Mismatched free/delete in vtkQImageToImageSource.cxx

Jeff Baumes jeff.baumes at kitware.com
Wed Jan 20 09:20:37 EST 2010


Jason Shepherd checked in a fix for this. Shout if you still see
issues with this.

Jeff

On Tue, Jan 19, 2010 at 8:50 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



-- 
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4932
jeff.baumes at kitware.com



More information about the vtk-developers mailing list