Index: /issm/trunk-jpl/src/c/modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp	(revision 16793)
+++ /issm/trunk-jpl/src/c/modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp	(revision 16794)
@@ -15,5 +15,5 @@
 
 	/*Ok, go find the output definitions dataset in the parameters, where our responses are hiding: */
-	femmodel->parameters->FindParam(&output_definitions,OutputdefinitionEnum); _assert_(output_definitions);
+	output_definitions=((DataSetParam*)femmodel->parameters->FindParamObject(OutputdefinitionEnum))->value;
 
 	/*Now, go through the output definitions, and retrieve the object which corresponds to our requested response, output_string: */
@@ -24,12 +24,17 @@
 		char* name = definition->Name();
 		if (strcmp(name,output_string)==0){
+
 			/*This is the object that we have been chasing for. compute the response and return: */
 			return_value=definition->Response(femmodel);
-			delete output_definitions;
+		
+			/*cleanup: */
 			xDelete<char>(name);
+
+			/*return:*/
 			return return_value;
 		}
 		xDelete<char>(name);
 	}
+	
 	/*If we are here, did not find the definition for this response, not good!: */
 	_error_("Could not find the response for output definition " << output_string << " because could not find the definition itself!");
