Index: ../trunk-jpl/src/c/modules/SetActiveNodesLSMx/SetActiveNodesLSMx.cpp
===================================================================
--- ../trunk-jpl/src/c/modules/SetActiveNodesLSMx/SetActiveNodesLSMx.cpp	(revision 18763)
+++ ../trunk-jpl/src/c/modules/SetActiveNodesLSMx/SetActiveNodesLSMx.cpp	(revision 18764)
@@ -114,7 +114,7 @@
 
 	/*Clean up and return*/
 	delete vec_mask_ice;
-	delete mask_ice;
+	xDelete<IssmDouble>(mask_ice);
 
 }/*}}}*/
 void SetMaskOfIceElement(Vector<IssmDouble>* vec_mask_ice, Element* element){/*{{{*/
