BUG: createPatch: cleanup

This commit is contained in:
mattijs
2014-07-23 20:30:22 +01:00
committed by Andrew Heather
parent 5c9f35339e
commit ee3eb6e370

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -186,6 +186,10 @@ void filterPatches(polyMesh& mesh, const HashSet<word>& addedPatchNames)
else else
{ {
Info<< "No patches removed." << endl; Info<< "No patches removed." << endl;
forAll(allPatches, i)
{
delete allPatches[i];
}
} }
} }