[cig-commits] commit: Fix a crashing bug when destroying SurfaceProcess

Mercurial hg at geodynamics.org
Thu Oct 27 17:26:08 PDT 2011


changeset:   905:7dd98b298cae
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Thu Oct 27 17:24:30 2011 -0700
files:       plugins/SurfaceProcess/SurfaceProcess.cxx
description:
Fix a crashing bug when destroying SurfaceProcess


diff -r dfc826e2b2a0 -r 7dd98b298cae plugins/SurfaceProcess/SurfaceProcess.cxx
--- a/plugins/SurfaceProcess/SurfaceProcess.cxx	Thu Oct 27 13:32:03 2011 -0700
+++ b/plugins/SurfaceProcess/SurfaceProcess.cxx	Thu Oct 27 17:24:30 2011 -0700
@@ -256,10 +256,11 @@ void _Underworld_SurfaceProcess_Build( v
 }
 
 void _Underworld_SurfaceProcess_Destroy( void* codelet, void* data ) {
-	UnderworldContext*	UnderworldCtx = (UnderworldContext*)data;
+	Codelet* ed=(Codelet*)codelet;
+	UnderworldContext* uwCtx=(UnderworldContext*)ed->context;
 
 	assert( codelet );
-	assert( UnderworldCtx );
+	assert( uwCtx );
 
 	/* Clear the lot. */
 	/* TODO */



More information about the CIG-COMMITS mailing list