]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
The DoFHandler never freed the memory it has allocated upon
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Nov 2001 09:28:02 +0000 (09:28 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Nov 2001 09:28:02 +0000 (09:28 +0000)
destruction! Fix this.

git-svn-id: https://svn.dealii.org/trunk@5287 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_handler.cc
deal.II/doc/news/2001/c-3-2.html

index a66760356af25ee3d2d7375b7fa2dd118fa5b8f5..fe4818a0290f7329c45a308a5d776696dd39c9a0 100644 (file)
@@ -49,7 +49,10 @@ DoFHandler<dim>::DoFHandler (Triangulation<dim> &tria) :
 
 template <int dim>
 DoFHandler<dim>::~DoFHandler ()
-{};
+{
+                                  // release allocated memory
+  clear ();
+};
 
 
 #if deal_II_dimension == 1
index d93386b97aeefaaee012e01255a311ff5c42d9ed..458657006572b2a7c6d8eaf32cae46a294b8ef2a 100644 (file)
@@ -203,6 +203,13 @@ documentation, etc</a>.
 <h3>deal.II</h3>
 
 <ol>
+  <li> <p>
+       Fixed: he <code class="class">DoFHandler</code> class had a
+       memory leak. This is now fixed.
+       <br>
+       (WB 2001/11/28)
+       </p>
+
   <li> <p> Fixed: The <code
        class="member">GridRefinement::refine</code>
        function failed when the threshold was zero. This is now fixed.

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.