From 02742f03beecd283fa9e299ea890e41d547875ab Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Wed, 29 Oct 2008 12:30:03 -0230 Subject: Bug 3415 - UserExceptionWriter should not create new OutputStream --- cpp/src/Ice/StreamI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/Ice/StreamI.cpp') 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(os->closure()); + assert(stream); write(stream); } -- cgit v1.2.3