From 8b5567c78f4aa4e472e43d6d324174f85fd98bd5 Mon Sep 17 00:00:00 2001 From: DBV <> Date: Fri, 17 Feb 2012 12:08:26 +0000 Subject: [PATCH] 0022937: Wrong delete operator in GeomFill_EvolvedSection.cxx / GeomFill_UniformSection.cxx --- src/GeomFill/GeomFill_EvolvedSection.cxx | 3 +-- src/GeomFill/GeomFill_UniformSection.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/GeomFill/GeomFill_EvolvedSection.cxx b/src/GeomFill/GeomFill_EvolvedSection.cxx index cc23c73cae..5a1338fad8 100755 --- a/src/GeomFill/GeomFill_EvolvedSection.cxx +++ b/src/GeomFill/GeomFill_EvolvedSection.cxx @@ -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 } diff --git a/src/GeomFill/GeomFill_UniformSection.cxx b/src/GeomFill/GeomFill_UniformSection.cxx index 32ee0b052d..b8c06b27b0 100755 --- a/src/GeomFill/GeomFill_UniformSection.cxx +++ b/src/GeomFill/GeomFill_UniformSection.cxx @@ -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 }