]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a destructor, to avoid a memory leak.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Feb 2000 13:58:38 +0000 (13:58 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Feb 2000 13:58:38 +0000 (13:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@2366 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc
tests/big-tests/error-estimation/error-estimation.cc

index 80648997e396454bdfb72639edb7d2685a9a3344..cd11fc86302830fb5c641227eda18d00ca8a2c61 100644 (file)
@@ -82,6 +82,7 @@ class PoissonProblem : public ProblemBase<dim>, public MultipleParameterLoop::Us
     };
     
     PoissonProblem ();
+    ~PoissonProblem ();
     
     void clear ();
     void create_new (const unsigned int);
@@ -337,6 +338,13 @@ PoissonProblem<dim>::PoissonProblem () :
 
 
 
+template <int dim>
+PoissonProblem<dim>::~PoissonProblem () 
+{
+  clear ();
+};
+
+
 
 template <int dim>
 void PoissonProblem<dim>::clear () {
index 80648997e396454bdfb72639edb7d2685a9a3344..cd11fc86302830fb5c641227eda18d00ca8a2c61 100644 (file)
@@ -82,6 +82,7 @@ class PoissonProblem : public ProblemBase<dim>, public MultipleParameterLoop::Us
     };
     
     PoissonProblem ();
+    ~PoissonProblem ();
     
     void clear ();
     void create_new (const unsigned int);
@@ -337,6 +338,13 @@ PoissonProblem<dim>::PoissonProblem () :
 
 
 
+template <int dim>
+PoissonProblem<dim>::~PoissonProblem () 
+{
+  clear ();
+};
+
+
 
 template <int dim>
 void PoissonProblem<dim>::clear () {

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.