From d852cc0d03d6043e1f3857464d93ce5c7ce6f61b Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 30 May 2014 12:39:20 +0200 Subject: [PATCH] EclipseSolution: make sure that attached keywords are not accidentally deleted --- ewoms/io/eclipsewriter.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ewoms/io/eclipsewriter.hh b/ewoms/io/eclipsewriter.hh index 0a727b4e8..b5b6b4c6a 100644 --- a/ewoms/io/eclipsewriter.hh +++ b/ewoms/io/eclipsewriter.hh @@ -255,7 +255,8 @@ public: const std::string &name = bufIt->first; const ScalarBuffer &buffer = *bufIt->second; - ErtKeyword bufKeyword(name, buffer); + std::shared_ptr> + bufKeyword(new ErtKeyword(name, buffer)); solution.add(bufKeyword); }