mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0022937: Wrong delete operator in GeomFill_EvolvedSection.cxx / GeomFill_UniformSection.cxx
This commit is contained in:
@@ -47,10 +47,9 @@ GeomFill_EvolvedSection::GeomFill_EvolvedSection(const Handle(Geom_Curve)& C,
|
||||
|
||||
#if DRAW
|
||||
if (Affich) {
|
||||
char* name = new char[100];
|
||||
char name[256];
|
||||
sprintf(name,"UnifSect_%d",++NumSec);
|
||||
DrawTrSurf::Set(name, myCurve);
|
||||
delete name;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@@ -46,10 +46,9 @@ GeomFill_UniformSection::GeomFill_UniformSection(const Handle(Geom_Curve)& C,
|
||||
|
||||
#if DRAW
|
||||
if (Affich) {
|
||||
char* name = new char[100];
|
||||
char name[256];
|
||||
sprintf(name,"UnifSect_%d",++NumSec);
|
||||
DrawTrSurf::Set(name, myCurve);
|
||||
delete name;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user