bug fix for memory cleanup for curved elements

This commit is contained in:
Joachim Schoeberl 2013-04-22 13:00:07 +00:00
parent 18ba82517f
commit 323a425673

View File

@ -319,7 +319,7 @@ namespace netgen
} }
Array<RecPol*> jacpols2; static Array<RecPol*> jacpols2;
// compute face bubbles up to order n, 0 < y, y-x < 1, x+y < 1 // compute face bubbles up to order n, 0 < y, y-x < 1, x+y < 1
@ -486,6 +486,7 @@ namespace netgen
{ {
for (int i = 0; i < jacpols2.Size(); i++) for (int i = 0; i < jacpols2.Size(); i++)
delete jacpols2[i]; delete jacpols2[i];
jacpols2.SetSize(0);
} }