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 | 3c763ba58f6335db82d466a73cef9de458113dab (patch) | |
tree | 2ac10dbd74c7103b4e6d451ffaf79d9c22c85976 | |
parent | 0edfeeb5816a25fd1f0322cb975c2234267b1727 (diff) | |
download | ATCD-3c763ba58f6335db82d466a73cef9de458113dab.tar.gz |
Corrected initialization error
-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 |