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