When called in the following execution chain
(1) CastToItkImage( mitkImage, itkImage )
(2) ChangeImageData( itkImage )
(3) GrabItkImageMemory( itkImage, mitkImage )
the internally performed import of the BufferPointer is not safe as it imports the same data pointer the mitkImage holds already.
Executing the GrabitkImageMemory further can lead to uncorrect reference count and hence an attempt for double memory free().