[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23
tpaviot
tpaviot at gmail.com
Fri Feb 24 18:50:33 UTC 2012
The following commit has been merged in the upstream branch:
commit 11c9b060aaee7121b02c99443e2e5160e1cca055
Author: tpaviot <tpaviot at gmail.com>
Date: Fri Jan 13 05:28:44 2012 +0100
[cppcheck-error-fix][mismatch-allocation-deallocation][Pawel]
Original post:
Hello,
GeomFill_EvolvedSection.cxx (line 53) / GeomFill_UniformSection.cxx (line 52) should use the "delete []" operator as arrays are deleted.
Pawel
diff --git a/src/GeomFill/GeomFill_EvolvedSection.cxx b/src/GeomFill/GeomFill_EvolvedSection.cxx
index c2e9445..c7a7fb4 100644
--- a/src/GeomFill/GeomFill_EvolvedSection.cxx
+++ b/src/GeomFill/GeomFill_EvolvedSection.cxx
@@ -49,7 +49,7 @@ GeomFill_EvolvedSection::GeomFill_EvolvedSection(const Handle(Geom_Curve)& C,
char* name = new char[100];
sprintf(name,"UnifSect_%d",++NumSec);
DrawTrSurf::Set(name, myCurve);
- delete name;
+ delete [] name;
}
#endif
}
diff --git a/src/GeomFill/GeomFill_UniformSection.cxx b/src/GeomFill/GeomFill_UniformSection.cxx
index 4b9e448..c954fb4 100644
--- a/src/GeomFill/GeomFill_UniformSection.cxx
+++ b/src/GeomFill/GeomFill_UniformSection.cxx
@@ -48,7 +48,7 @@ GeomFill_UniformSection::GeomFill_UniformSection(const Handle(Geom_Curve)& C,
char* name = new char[100];
sprintf(name,"UnifSect_%d",++NumSec);
DrawTrSurf::Set(name, myCurve);
- delete name;
+ delete [] name;
}
#endif
}
--
OCE packaging
More information about the debian-science-commits
mailing list