summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/StreamI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-10-29 12:30:03 -0230
committerDwayne Boone <dwayne@zeroc.com>2008-10-29 12:30:03 -0230
commit02742f03beecd283fa9e299ea890e41d547875ab (patch)
tree4446d30d31145388ca56769a9b738c0174ce5e2a /cpp/src/Ice/StreamI.cpp
parentBug 3323 - changed value demo class to interface (diff)
downloadice-02742f03beecd283fa9e299ea890e41d547875ab.tar.bz2
ice-02742f03beecd283fa9e299ea890e41d547875ab.tar.xz
ice-02742f03beecd283fa9e299ea890e41d547875ab.zip
Bug 3415 - UserExceptionWriter should not create new OutputStream
Diffstat (limited to 'cpp/src/Ice/StreamI.cpp')
-rw-r--r--cpp/src/Ice/StreamI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/StreamI.cpp b/cpp/src/Ice/StreamI.cpp
index 26ecc8acb19..4e5bd68c231 100644
--- a/cpp/src/Ice/StreamI.cpp
+++ b/cpp/src/Ice/StreamI.cpp
@@ -698,7 +698,8 @@ Ice::UserExceptionWriter::~UserExceptionWriter() throw()
void
Ice::UserExceptionWriter::__write(BasicStream* os) const
{
- OutputStreamPtr stream = new OutputStreamI(_communicator, os);
+ OutputStreamI* stream = reinterpret_cast<OutputStreamI*>(os->closure());
+ assert(stream);
write(stream);
}