Fix some Coverity identified issues.

This commit is contained in:
Jeff Young 2020-01-13 19:39:49 +00:00
parent 3ab9db6ff1
commit 91d1508c16
3 changed files with 11 additions and 9 deletions

View File

@ -28,8 +28,9 @@
#include <eda_draw_frame.h>
PICKER_TOOL::PICKER_TOOL()
: TOOL_INTERACTIVE( "common.InteractivePicker" )
PICKER_TOOL::PICKER_TOOL() :
TOOL_INTERACTIVE( "common.InteractivePicker" ),
m_frame( nullptr )
{
resetPicker();
}

View File

@ -37,7 +37,8 @@
GLOBAL_EDIT_TOOL::GLOBAL_EDIT_TOOL() :
PCB_TOOL_BASE( "pcbnew.GlobalEdit" )
PCB_TOOL_BASE( "pcbnew.GlobalEdit" ),
m_selectionTool( nullptr )
{
}

View File

@ -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;
}