summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-13 18:50:04 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-13 18:50:04 +0000
commitf85010f6d8630f37ca881f53d021e4de63f1a362 (patch)
tree04364637ee828a66000bbd47ff07198e62753e2e /cpp/src
parentFixes (diff)
downloadice-f85010f6d8630f37ca881f53d021e4de63f1a362.tar.bz2
ice-f85010f6d8630f37ca881f53d021e4de63f1a362.tar.xz
ice-f85010f6d8630f37ca881f53d021e4de63f1a362.zip
fixes
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/EventHandler.cpp2
-rw-r--r--cpp/src/Ice/StreamI.cpp3
-rw-r--r--cpp/src/Ice/StreamI.h1
3 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/Ice/EventHandler.cpp b/cpp/src/Ice/EventHandler.cpp
index 9b9f7dcebfb..0b8546ec818 100644
--- a/cpp/src/Ice/EventHandler.cpp
+++ b/cpp/src/Ice/EventHandler.cpp
@@ -22,7 +22,7 @@ void IceInternal::decRef(EventHandler* p) { p->__decRef(); }
IceInternal::EventHandler::EventHandler(const InstancePtr& instance) :
_instance(instance),
- _stream(_instance) // Not instance! This must be _instance!
+ _stream(_instance) // Must be _instance, and not instance, because BasicStream does not duplicate the instance!
{
}
diff --git a/cpp/src/Ice/StreamI.cpp b/cpp/src/Ice/StreamI.cpp
index 0536c84f823..bf1e80fa8ed 100644
--- a/cpp/src/Ice/StreamI.cpp
+++ b/cpp/src/Ice/StreamI.cpp
@@ -15,7 +15,8 @@ using namespace Ice;
using namespace IceInternal;
Ice::StreamI::StreamI(const InstancePtr& instance) :
- _stream(instance)
+ _instance(instance),
+ _stream(_instance) // Must be _instance, and not instance, because BasicStream does not duplicate the instance!
{
}
diff --git a/cpp/src/Ice/StreamI.h b/cpp/src/Ice/StreamI.h
index b793821eed9..ade7a0545ea 100644
--- a/cpp/src/Ice/StreamI.h
+++ b/cpp/src/Ice/StreamI.h
@@ -75,6 +75,7 @@ public:
private:
+ ::IceInternal::InstancePtr _instance;
::IceInternal::BasicStream _stream;
};