Hi everyone,
When implementing undo for my plugin I noticed that setting an undo limit will
cause Memory leaks since UndoStackItems are not deleted when exceeding the
limit (unlike when using ClearList).
See mitkLimitedLinearUndo.cpp(and for that issue also
VerboseLimitedLinearUndo.cpp) in the method SetOperationEvent:
if (m_UndoLimit > 0 && m_UndoList.size() == m_UndoLimit)
{
m_UndoList.pop_front();
}
Kind regards,
Bertram
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users