diff --git a/common/hotkeys_basic.cpp b/common/hotkeys_basic.cpp index 46cea5969e..dc5c9ffba8 100644 --- a/common/hotkeys_basic.cpp +++ b/common/hotkeys_basic.cpp @@ -563,7 +563,7 @@ int EDA_BASE_FRAME::ReadHotkeyConfigFile( const wxString& aFilename, ParseHotkeyConfig( data, aDescList ); /* cleanup */ - delete buffer; + delete[] buffer; cfgfile.Close(); return 1; }