]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix memory leak
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 9 Feb 2001 19:59:13 +0000 (19:59 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 9 Feb 2001 19:59:13 +0000 (19:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@3896 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/quadrature_test.cc

index 3223f473396ff8f5af50218b9612d70352998a5e..2af6236bd7a9e5da981634115054466ca8ec8820 100644 (file)
@@ -201,6 +201,15 @@ int main(int,char)
   check_faces(q2,false);
   check_faces(q2,true);
   deallog.pop();
+
+                                  // delete objects again to avoid
+                                  // messages about memory leaks
+  for (unsigned int i=0; i<q1.size(); ++i)
+    delete q1[i];
+  for (unsigned int i=0; i<q2.size(); ++i)
+    delete q2[i];
+  for (unsigned int i=0; i<q3.size(); ++i)
+    delete q3[i];  
 }
 
 

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.