]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Call the correct deleter for ReadWriteVector::values
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 29 Apr 2018 13:14:06 +0000 (15:14 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 29 Apr 2018 13:14:06 +0000 (15:14 +0200)
include/deal.II/lac/read_write_vector.h

index 2a89b6223c2c6f83a314a8adbc64f965c21644de..e51958adaad9cec0ea5139c3cb6076c695ad62fd 100644 (file)
@@ -610,7 +610,7 @@ namespace LinearAlgebra
     /**
      * Pointer to the array of local elements of this vector.
      */
-    std::unique_ptr<Number[]> values;
+    std::unique_ptr<Number[], decltype (free) *> values = std::unique_ptr<Number[], decltype (free) *> (nullptr, free);
 
     /**
      * For parallel loops with TBB, this member variable stores the affinity

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.