diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-11-05 12:21:24 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-11-05 12:21:24 -0330 |
commit | e67bc9d134e2727e1da51729665c672904daf6c0 (patch) | |
tree | 784284319746e5e4a807c469c50ed5c8b671193d /cpp/src/Ice/StreamI.cpp | |
parent | Merge branch 'R3_3_branch' (diff) | |
parent | Bug 3386 - slice errors with wrong line numbers (diff) | |
download | ice-e67bc9d134e2727e1da51729665c672904daf6c0.tar.bz2 ice-e67bc9d134e2727e1da51729665c672904daf6c0.tar.xz ice-e67bc9d134e2727e1da51729665c672904daf6c0.zip |
Merge branch 'R3_3_branch'
Diffstat (limited to 'cpp/src/Ice/StreamI.cpp')
-rw-r--r-- | cpp/src/Ice/StreamI.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Ice/StreamI.cpp b/cpp/src/Ice/StreamI.cpp index 26ecc8acb19..9a6d4cfca04 100644 --- a/cpp/src/Ice/StreamI.cpp +++ b/cpp/src/Ice/StreamI.cpp @@ -698,7 +698,14 @@ Ice::UserExceptionWriter::~UserExceptionWriter() throw() void Ice::UserExceptionWriter::__write(BasicStream* os) const { - OutputStreamPtr stream = new OutputStreamI(_communicator, os); + OutputStreamI* stream = reinterpret_cast<OutputStreamI*>(os->closure()); + if(!stream) + { + // + // Required for IcePy usage + // + stream = new OutputStreamI(_communicator, os); + } write(stream); } |