diff options
author | tworm <tworm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-06 16:55:16 +0000 |
---|---|---|
committer | tworm <tworm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-06 16:55:16 +0000 |
commit | 840730afa05ee122369589ba080be0128e69d2e1 (patch) | |
tree | 2ac10dbd74c7103b4e6d451ffaf79d9c22c85976 /TAO/orbsvcs/orbsvcs/Concurrency | |
parent | 9485021e37250df53d4ce44409390ddc1e16178d (diff) | |
download | ATCD-840730afa05ee122369589ba080be0128e69d2e1.tar.gz |
Corrected initialization error
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Concurrency')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp index 90142a078ba..a0bf9065291 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp @@ -22,14 +22,16 @@ // full fledged version the lock set (implementation) will be instantiated // here CC_LockSet::CC_LockSet(void) - : related_lockset_ (0) + : related_lockset_ (0), + lock_ (0) { // Do nothing } // Constructor used to create related lock sets. CC_LockSet::CC_LockSet(CosConcurrencyControl::LockSet_ptr related) - : related_lockset_ (related) + : related_lockset_ (related), + lock_ (0) { // Do nothing } @@ -41,6 +43,7 @@ CC_LockSet::~CC_LockSet(void) { if(lock_!=0) delete lock_; + lock_ = 0; } // Locks the lock in the desired mode. Blocks until success. In a later |