From ec1ed3781f2131ed5eeadd205abcfb9dead17625 Mon Sep 17 00:00:00 2001 From: heister Date: Mon, 5 Aug 2013 22:42:38 +0000 Subject: [PATCH] It looks like block matrices of all type were not freeing memory at exit. Fixed. git-svn-id: https://svn.dealii.org/trunk@30234 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/block_matrix_base.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deal.II/include/deal.II/lac/block_matrix_base.h b/deal.II/include/deal.II/lac/block_matrix_base.h index 56d0067a63..92b33fa952 100644 --- a/deal.II/include/deal.II/lac/block_matrix_base.h +++ b/deal.II/include/deal.II/lac/block_matrix_base.h @@ -412,6 +412,11 @@ public: */ BlockMatrixBase (); + /** + * Destructor. + */ + ~BlockMatrixBase (); + /** * Copy the given matrix to this * one. The operation throws an @@ -1736,6 +1741,12 @@ inline BlockMatrixBase::BlockMatrixBase () {} +template +inline +BlockMatrixBase::~BlockMatrixBase () +{ + clear (); +} template -- 2.39.5