[cig-commits] commit: Fix a bug when destroying the context

Mercurial hg at geodynamics.org
Mon Feb 1 15:32:01 PST 2010


changeset:   386:38e28a9ce954
user:        Walter Landry <wlandry at caltech.edu>
date:        Wed Jan 27 06:59:34 2010 -0800
files:       MaterialPoints/src/PICelleratorContext.c
description:
Fix a bug when destroying the context


diff -r 1823810c6608 -r 38e28a9ce954 MaterialPoints/src/PICelleratorContext.c
--- a/MaterialPoints/src/PICelleratorContext.c	Tue Jan 26 16:30:01 2010 -0800
+++ b/MaterialPoints/src/PICelleratorContext.c	Wed Jan 27 06:59:34 2010 -0800
@@ -139,7 +139,7 @@ void _PICelleratorContext_Delete( void* 
 }
 
 void _PICelleratorContext_Destroy( void *component, void* context ) {
-	PICelleratorContext* self = (PICelleratorContext*)context;
+	PICelleratorContext* self = (PICelleratorContext*)component;
 	
 	_FiniteElementContext_Destroy( self );
 }



More information about the CIG-COMMITS mailing list