Page MenuHomePhabricator

ITK Warning appears after closing statistics
Closed, ResolvedPublic

Description

If you open and close the "statistics" bundle an ITK warning with the following message appears:

"WARNING: In ..\..\..\..\source\ITK3160\Code\Common\itkLightObject.cxx, line 277
LightObject (093F4644): Trying to delete object with non-zero reference count."

Event Timeline

[SVN revision 22083]
FIX (#3475): call Delete on m_Controls->m_LineProfileWidget and m_Controls->m_HistogramWidget in destructor of QmitkImageStatisticsView because they are derived from itk::Object but automatically created via the C-style new operator in ui_QmitkImageStatisticsViewControls.h