From 855ee33e8afddc560985d060600f6935bd74f763 Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 12 Feb 2014 17:19:59 +0400 Subject: [PATCH] Fix of 0022476: EDF 2828 GEOM [XAO] : Crash when exporting to .xao (or operation doesn't terminate) --- src/XAO/XAO_BrepGeometry.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) -- 2.39.2