]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Only create the memory leak when linking with Trilinos.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 28 Oct 2008 14:05:23 +0000 (14:05 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 28 Oct 2008 14:05:23 +0000 (14:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@17365 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/log.cc

index 1c489db09846fbf4adb35148fe7fe0fd621fe62a..febc54d5083d453bd0709939c3d4882e4eeaef8f 100644 (file)
@@ -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
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.