diff --git a/common/tool/picker_tool.cpp b/common/tool/picker_tool.cpp index d64d79fb9a..f6657e931f 100644 --- a/common/tool/picker_tool.cpp +++ b/common/tool/picker_tool.cpp @@ -28,8 +28,9 @@ #include -PICKER_TOOL::PICKER_TOOL() - : TOOL_INTERACTIVE( "common.InteractivePicker" ) +PICKER_TOOL::PICKER_TOOL() : + TOOL_INTERACTIVE( "common.InteractivePicker" ), + m_frame( nullptr ) { resetPicker(); } diff --git a/pcbnew/tools/global_edit_tool.cpp b/pcbnew/tools/global_edit_tool.cpp index 4afa674c71..018668ca6c 100644 --- a/pcbnew/tools/global_edit_tool.cpp +++ b/pcbnew/tools/global_edit_tool.cpp @@ -37,7 +37,8 @@ GLOBAL_EDIT_TOOL::GLOBAL_EDIT_TOOL() : - PCB_TOOL_BASE( "pcbnew.GlobalEdit" ) + PCB_TOOL_BASE( "pcbnew.GlobalEdit" ), + m_selectionTool( nullptr ) { } diff --git a/thirdparty/dxflib_qcad/dl_dxf.cpp b/thirdparty/dxflib_qcad/dl_dxf.cpp index 63e74e58a4..b126a7d87b 100644 --- a/thirdparty/dxflib_qcad/dl_dxf.cpp +++ b/thirdparty/dxflib_qcad/dl_dxf.cpp @@ -6425,10 +6425,10 @@ void DL_Dxf::test() stripWhiteSpace( &buf6 ); std::cout << "2 buf6: '" << buf6 << "'\n"; - delete( buf1 ); - delete( buf2 ); - delete( buf3 ); - delete( buf4 ); - delete( buf5 ); - delete( buf6 ); + delete[] buf1; + delete[] buf2; + delete[] buf3; + delete[] buf4; + delete[] buf5; + delete[] buf6; }