summaryrefslogtreecommitdiff
path: root/TAO/tao/Stub.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Stub.cpp')
-rw-r--r--TAO/tao/Stub.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/TAO/tao/Stub.cpp b/TAO/tao/Stub.cpp
index b3e93fbd1d0..b7a03fdeedc 100644
--- a/TAO/tao/Stub.cpp
+++ b/TAO/tao/Stub.cpp
@@ -354,9 +354,7 @@ TAO_Stub::_incr_refcnt (void)
void
TAO_Stub::_decr_refcnt (void)
{
- const CORBA::ULong new_count = --this->refcount_;
-
- if (new_count == 0)
+ if (--this->refcount_ == 0)
delete this;
}