Commit 089e99b9 authored by Maciej Suminski's avatar Maciej Suminski

Fixing memory leaks.

parent 9325a9e7
...@@ -119,7 +119,8 @@ void CONTEXT_MENU::Add( const TOOL_ACTION& aAction ) ...@@ -119,7 +119,8 @@ void CONTEXT_MENU::Add( const TOOL_ACTION& aAction )
case MD_SHIFT: flags = wxACCEL_SHIFT; break; 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 ); m_menu.Append( item );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment