From: akl Date: Wed, 12 Feb 2014 13:19:59 +0000 (+0400) Subject: Fix of 0022476: EDF 2828 GEOM [XAO] : Crash when exporting to .xao (or operation... X-Git-Tag: V7_4_0a1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=855ee33e8afddc560985d060600f6935bd74f763;p=modules%2Fgeom.git Fix of 0022476: EDF 2828 GEOM [XAO] : Crash when exporting to .xao (or operation doesn't terminate) --- diff --git a/src/XAO/XAO_BrepGeometry.cxx b/src/XAO/XAO_BrepGeometry.cxx index 042f935f9..e9d264347 100644 --- a/src/XAO/XAO_BrepGeometry.cxx +++ b/src/XAO/XAO_BrepGeometry.cxx @@ -53,10 +53,7 @@ const std::string BrepGeometry::getShapeString() { std::ostringstream streamShape; BRepTools::Write(m_shape, streamShape); - std::string data = streamShape.str(); - char* res = new char[data.size()]; - strcpy(res, data.c_str()); - return res; + return streamShape.str(); } void BrepGeometry::setShapeString(const std::string& shape)