[cig-commits] commit: Adding a check for self - this won't be needed after refCounters are implemented
Mercurial
hg at geodynamics.org
Mon Feb 1 15:32:48 PST 2010
changeset: 727:00a70931df12
branch: pcu_rejig
user: JulianGiordani
date: Fri Dec 11 13:25:17 2009 +1100
files: Base/Automation/src/Stg_Component.c
description:
Adding a check for self - this won't be needed after refCounters are implemented
diff -r f677f87f8188 -r 00a70931df12 Base/Automation/src/Stg_Component.c
--- a/Base/Automation/src/Stg_Component.c Thu Dec 10 11:58:29 2009 +1100
+++ b/Base/Automation/src/Stg_Component.c Fri Dec 11 13:25:17 2009 +1100
@@ -342,7 +342,7 @@ void Stg_Component_Destroy( void* compon
void Stg_Component_Destroy( void* component, void* data, Bool force ) {
Stg_Component* self = (Stg_Component*)component;
- if( /* force TODO: remove this comment after pcu_rejig period|| */ !self->isDestroyed ) {
+ if( /* TODO: once the refCounters are implemented there is no longeer a need to check self|| */ self && !self->isDestroyed ) {
/*Stg_TimeMonitor* tm;
Stg_MemMonitor* mm;
char* buf;
More information about the CIG-COMMITS
mailing list