Index: /issm/trunk-jpl/src/c/classes/Elements/ElementHook.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/ElementHook.cpp	(revision 18242)
+++ /issm/trunk-jpl/src/c/classes/Elements/ElementHook.cpp	(revision 18243)
@@ -27,7 +27,10 @@
 ElementHook::~ElementHook(){/*{{{*/
 
-	int i;
-
-	if (this->hnodes) delete [] this->hnodes;
+	if(this->hnodes){
+		for(int i=0;i<this->numanalyses;i++){
+			if(this->hnodes[i]) delete this->hnodes[i]; 
+		}
+		delete [] this->hnodes;
+	}
 	delete hvertices;
 	delete hmaterial;
