From: wolf Date: Wed, 28 Nov 2001 09:28:02 +0000 (+0000) Subject: The DoFHandler never freed the memory it has allocated upon X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e623396a1b582c2bab16239898f711ee540e9e;p=dealii-svn.git The DoFHandler never freed the memory it has allocated upon destruction! Fix this. git-svn-id: https://svn.dealii.org/trunk@5287 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_handler.cc b/deal.II/deal.II/source/dofs/dof_handler.cc index a66760356a..fe4818a029 100644 --- a/deal.II/deal.II/source/dofs/dof_handler.cc +++ b/deal.II/deal.II/source/dofs/dof_handler.cc @@ -49,7 +49,10 @@ DoFHandler::DoFHandler (Triangulation &tria) : template DoFHandler::~DoFHandler () -{}; +{ + // release allocated memory + clear (); +}; #if deal_II_dimension == 1 diff --git a/deal.II/doc/news/2001/c-3-2.html b/deal.II/doc/news/2001/c-3-2.html index d93386b97a..4586570065 100644 --- a/deal.II/doc/news/2001/c-3-2.html +++ b/deal.II/doc/news/2001/c-3-2.html @@ -203,6 +203,13 @@ documentation, etc.

deal.II

    +
  1. + Fixed: he DoFHandler class had a + memory leak. This is now fixed. +
    + (WB 2001/11/28) +

    +
  2. Fixed: The GridRefinement::refine function failed when the threshold was zero. This is now fixed.