From 02495fc98d15d358829ee9c543ef5a79e534b18a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 3 Aug 2017 04:59:52 -0600 Subject: [PATCH] Use the proper way to deal with std::unique_ptrs. --- include/deal.II/hp/dof_handler.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/deal.II/hp/dof_handler.h b/include/deal.II/hp/dof_handler.h index f315534172..c4be7e907a 100644 --- a/include/deal.II/hp/dof_handler.h +++ b/include/deal.II/hp/dof_handler.h @@ -948,14 +948,9 @@ namespace hp // pointer object still points to something useful, that object is not // destroyed and we end up with a memory leak. consequently, first delete // previous content before re-loading stuff - for (unsigned int i = 0; i