summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-05 20:59:58 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-05 20:59:58 +0000
commitd2a56321d01ef31d8ec5005ba1b6bf5b3bfb3b5f (patch)
tree3c0eb26dd60bbd1d751ae1128ce263e572848228 /cpp/src
parentwin fixes (diff)
downloadice-d2a56321d01ef31d8ec5005ba1b6bf5b3bfb3b5f.tar.bz2
ice-d2a56321d01ef31d8ec5005ba1b6bf5b3bfb3b5f.tar.xz
ice-d2a56321d01ef31d8ec5005ba1b6bf5b3bfb3b5f.zip
fixes
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Proxy.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp
index 2af8fa5812d..017e2aba99a 100644
--- a/cpp/src/Ice/Proxy.cpp
+++ b/cpp/src/Ice/Proxy.cpp
@@ -787,8 +787,18 @@ IceDelegateM::Ice::Object::__copyFrom(const ::IceInternal::Handle< ::IceDelegate
//
__reference = from->__reference;
+
+ if (from->__connection)
+ {
+ from->__connection->incProxyUsageCount();
+ }
+
+ if (__connection)
+ {
+ __connection->decProxyUsageCount();
+ }
+
__connection = from->__connection;
- __connection->incProxyUsageCount();
}
void