diff --git a/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C b/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C
index c8f6b88705e822b8aab5c1ee23f98925a89c4c3a..e9444d0eae2dc4e5b30bdedf917d5b9881ccf9f2 100644
--- a/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C
+++ b/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011-2013 OpenFOAM Foundation
+    \\  /    A nd           | Copyright (C) 2011-2014 OpenFOAM Foundation
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
@@ -2430,10 +2430,9 @@ int main(int argc, char *argv[])
     // Add the new patches
     forAll(regionPatches, patchI)
     {
-        regionPatches[patchI] = regionPatches[patchI]->clone
-        (
-            regionMesh.boundaryMesh()
-        ).ptr();
+        polyPatch* ppPtr = regionPatches[patchI];
+        regionPatches[patchI] = ppPtr->clone(regionMesh.boundaryMesh()).ptr();
+        delete ppPtr;
     }
     regionMesh.clearOut();
     regionMesh.removeFvBoundary();