diff --git a/eeschema/dialogs/dialog_edit_line_style.cpp b/eeschema/dialogs/dialog_edit_line_style.cpp index 7a5a880aa9..fe574fb0f2 100644 --- a/eeschema/dialogs/dialog_edit_line_style.cpp +++ b/eeschema/dialogs/dialog_edit_line_style.cpp @@ -31,9 +31,6 @@ #include <sch_edit_frame.h> #include <widgets/color_swatch.h> -const int BUTT_COLOR_MINSIZE_X = 32; -const int BUTT_COLOR_MINSIZE_Y = 20; - struct lineTypeStruct { diff --git a/plugins/3d/oce/loadmodel.cpp b/plugins/3d/oce/loadmodel.cpp index eb4f953c00..fc11a0d26b 100644 --- a/plugins/3d/oce/loadmodel.cpp +++ b/plugins/3d/oce/loadmodel.cpp @@ -483,7 +483,7 @@ bool readSTEPZ( Handle(TDocStd_Document)& m_doc, const char* aFileName ) ifile.Read( buffer, size); std::string expanded = gzip::decompress( buffer, size ); - delete buffer; + delete[] buffer; ofile.Write( expanded.data(), expanded.size() ); ofile.Close(); diff --git a/plugins/3d/vrml/vrml.cpp b/plugins/3d/vrml/vrml.cpp index 643c0179dc..768f0edcf7 100644 --- a/plugins/3d/vrml/vrml.cpp +++ b/plugins/3d/vrml/vrml.cpp @@ -187,7 +187,7 @@ SCENEGRAPH* LoadVRML( const wxString& aFileName, bool useInline ) ifile.Read( buffer, size); std::string expanded = gzip::decompress( buffer, size ); - delete buffer; + delete[] buffer; ofile.Write( expanded.data(), expanded.size() ); ofile.Close();