Commit 1601310d authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot
Browse files

Merge topic '15998-image-slice-mapper-delete'

9757e682

 15998: Fix mismatched new/free in vtkOpenGLImageSliceMapper.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1222
parents e64f9423 9757e682
......@@ -316,7 +316,8 @@ void vtkOpenGLImageSliceMapper::RenderTexturedPolygon(
id->SetExtent(0,xsize-1,0,ysize-1,0,0);
vtkUnsignedCharArray *uca = vtkUnsignedCharArray::New();
uca->SetNumberOfComponents(bytesPerPixel);
uca->SetArray(data,xsize*ysize*bytesPerPixel,reuseData);
uca->SetArray(data,xsize*ysize*bytesPerPixel,reuseData,
vtkAbstractArray::VTK_DATA_ARRAY_DELETE);
id->GetPointData()->SetScalars(uca);
uca->Delete();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment