Fixed a memleak (CONDITIONAL_MENU).

This commit is contained in:
Maciej Suminski
2015-07-22 10:46:57 +02:00
parent 6cb57f100a
commit 83171482b3
2 changed files with 14 additions and 1 deletions
+9
View File
@@ -24,6 +24,15 @@
#include "conditional_menu.h"
CONDITIONAL_MENU::~CONDITIONAL_MENU()
{
for( std::list<ENTRY>::iterator it = m_entries.begin(); it != m_entries.end(); ++it )
{
if( it->Type() == ENTRY::MENU )
delete it->Menu();
}
}
void CONDITIONAL_MENU::AddItem( const TOOL_ACTION& aAction, const SELECTION_CONDITION& aCondition,
int aOrder )