From 088832b8f6c521c88d9ed6ed60647599ac261f4c Mon Sep 17 00:00:00 2001 From: Matthew Beckler Date: Sat, 13 Apr 2013 23:07:04 -0500 Subject: [PATCH] Match 'new char[]' with proper delete[] char* rather than delete char*. --- common/hotkeys_basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }