Index: /issm/trunk/src/c/modules/VerticesDofx/VerticesDofx.cpp
===================================================================
--- /issm/trunk/src/c/modules/VerticesDofx/VerticesDofx.cpp	(revision 4136)
+++ /issm/trunk/src/c/modules/VerticesDofx/VerticesDofx.cpp	(revision 4137)
@@ -25,5 +25,5 @@
 	DofVec* tpartition=NULL;
 
-	if(*ppartition)return; //do not create partition vector twice! we only have on set of vertices
+	if(*ppartition) return; //do not create partition vector twice! we only have on set of vertices
 
 	/*Initialize dofvecs: */
Index: /issm/trunk/src/c/objects/FemModel.cpp
===================================================================
--- /issm/trunk/src/c/objects/FemModel.cpp	(revision 4136)
+++ /issm/trunk/src/c/objects/FemModel.cpp	(revision 4137)
@@ -32,4 +32,6 @@
 	this->analysis_counter=nummodels-1; //point to last analysis_type carried out.
 	this->results=new DataSet(); //not initialized by CreateDataSets
+	this->partition=NULL;
+	this->tpartition=NULL;
 	
 	/*Dynamically allocate whatever is a list of length nummodels: */
@@ -60,5 +62,5 @@
 	
 		_printf_("      create degrees of freedom\n");
-		VerticesDofx( &partition,&tpartition,vertices,parameters);
+		VerticesDofx(&partition,&tpartition,vertices,parameters);
 		NodesDofx(nodes,parameters);
 
@@ -116,9 +118,9 @@
 
 	/*Delete dynamically allocated arrays: */
-	delete m_Rmg;
-	delete m_Gmn;
-	delete m_nodesets;
-	delete m_yg;
-	delete m_ys;
+	xfree((void**)&m_Rmg);
+	xfree((void**)&m_Gmn);
+	xfree((void**)&m_nodesets);
+	xfree((void**)&m_yg);
+	xfree((void**)&m_ys);
 
 }
Index: /issm/trunk/src/c/objects/Hook.cpp
===================================================================
--- /issm/trunk/src/c/objects/Hook.cpp	(revision 4136)
+++ /issm/trunk/src/c/objects/Hook.cpp	(revision 4137)
@@ -92,5 +92,5 @@
 }
 /*}}}*/
-/*FUNCTION Hook::Hook(Hook* input) {{{1*/
+/*FUNCTION Hook::copy(Hook* input) {{{1*/
 void Hook::copy(Hook* input){
 
