From: bangerth Date: Tue, 28 Oct 2008 14:05:23 +0000 (+0000) Subject: Only create the memory leak when linking with Trilinos. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0ce0ef582f49be786758e65d99319cf176c0097;p=dealii-svn.git Only create the memory leak when linking with Trilinos. git-svn-id: https://svn.dealii.org/trunk@17365 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/log.cc b/deal.II/base/source/log.cc index 1c489db098..febc54d508 100644 --- a/deal.II/base/source/log.cc +++ b/deal.II/base/source/log.cc @@ -80,8 +80,10 @@ LogStream::~LogStream() // deliberate memory leak and // instead destroying an empty // object +#ifdef DEAL_II_USE_TRILINOS if (this == &deallog) (new stream_map_type())->swap (outstreams); +#endif }