From: kronbichler Date: Thu, 24 Sep 2009 15:42:14 +0000 (+0000) Subject: Fixed a memory leak in destructor when working with Trilinos. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c67eda855595dfec198d477b40e8c4695d69b9b6;p=dealii-svn.git Fixed a memory leak in destructor when working with Trilinos. git-svn-id: https://svn.dealii.org/trunk@19528 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/log.cc b/deal.II/base/source/log.cc index 4790aadb0d..304cb68910 100644 --- a/deal.II/base/source/log.cc +++ b/deal.II/base/source/log.cc @@ -96,7 +96,11 @@ LogStream::~LogStream() // object #ifdef DEAL_II_USE_TRILINOS if (this == &deallog) - (new stream_map_type())->swap (outstreams); + { + stream_map_type * dummy = new stream_map_type(); + dummy->swap (outstreams); + delete dummy; + } #endif }