mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
bug fix for memory cleanup for curved elements
This commit is contained in:
parent
18ba82517f
commit
323a425673
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user