1
0
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:
DBV 2012-02-17 12:08:26 +00:00 committed by bugmaster
parent 65c017004c
commit 8b5567c78f
2 changed files with 2 additions and 4 deletions

View File

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

View File

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