Fixing memory leaks.

This commit is contained in:
Maciej Suminski 2014-05-13 11:22:51 +02:00
parent 9325a9e74d
commit 089e99b99e
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ void CONTEXT_MENU::Add( const TOOL_ACTION& aAction )
case MD_SHIFT: flags = wxACCEL_SHIFT; break;
}
item->SetAccel( new wxAcceleratorEntry( flags, key, id, item ) );
wxAcceleratorEntry accel( flags, key, id, item );
item->SetAccel( &accel );
}
m_menu.Append( item );