Page MenuHomePhabricator

Some issues with refactored mitk::Image
Closed, ResolvedPublic

Description

  1. The ImageStatistics holder produces a memory leak by holding a smart pointer to the image
  2. Wrong dimension checking in mitk::Image::ImageDataItemPointer mitk::Image::GetChannelData(int n, void *data, ImportMemoryManagementType importMemoryManagement) causes crash of the application.

Event Timeline

Needs CoreModificationFlag. Change Request written.

[d8ef6c]: Merge branch 'bug-10804-MemoryLeakInStatisticsHolder'

Merged commits:

2012-01-24 20:41:04 Sven Mersmann [a214c4]
Some changes in mitkImage due to memeory leaks and to high reference count.


2012-01-23 15:09:36 Sven Mersmann [6abef9]
Changed m_Image member in mitkImageStatisticsHolder to weak pointer to prevent memory leakage. Changed dimension checking in GetChannelData() of mitkImage due to crash of application.