[cig-commits] commit: Only destroy something we have created

Mercurial hg at geodynamics.org
Wed Nov 9 15:20:58 PST 2011


changeset:   636:942c54af9965
user:        Walter Landry <wlandry at caltech.edu>
date:        Wed Nov 09 15:20:00 2011 -0800
files:       Swarm/tests/ParticleCoordsSuite.cxx
description:
Only destroy something we have created


diff -r 8cd67cab7ba4 -r 942c54af9965 Swarm/tests/ParticleCoordsSuite.cxx
--- a/Swarm/tests/ParticleCoordsSuite.cxx	Wed Nov 09 15:19:33 2011 -0800
+++ b/Swarm/tests/ParticleCoordsSuite.cxx	Wed Nov 09 15:20:00 2011 -0800
@@ -104,9 +104,9 @@ void ParticleCoordsSuite_TestLineParticl
 		Stg_Class_Delete( variable_Register );
 
 		remove( "linearParticle.dat" );
+                stgMainDestroy( cf );
 	}
 
-	stgMainDestroy( cf );
 }
 
 void ParticleCoordsSuite( pcu_suite_t* suite ) {



More information about the CIG-COMMITS mailing list