From: heister Date: Mon, 5 Aug 2013 22:42:38 +0000 (+0000) Subject: It looks like block matrices of all type were not freeing memory at exit. Fixed. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec1ed3781f2131ed5eeadd205abcfb9dead17625;p=dealii-svn.git 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 --- 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