summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/BasicStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r--cpp/src/Ice/BasicStream.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp
index 3b2d7fa41c6..2d19bd83d38 100644
--- a/cpp/src/Ice/BasicStream.cpp
+++ b/cpp/src/Ice/BasicStream.cpp
@@ -2038,6 +2038,10 @@ IceInternal::BasicStream::EncapsDecoder::unmarshal(Int index, const Ice::ObjectP
{
try
{
+ if(_stream->instance()->collectObjects())
+ {
+ v->ice_collectable(true);
+ }
v->ice_postUnmarshal();
}
catch(const std::exception& ex)
@@ -2067,6 +2071,10 @@ IceInternal::BasicStream::EncapsDecoder::unmarshal(Int index, const Ice::ObjectP
{
try
{
+ if(_stream->instance()->collectObjects())
+ {
+ (*p)->ice_collectable(true);
+ }
(*p)->ice_postUnmarshal();
}
catch(const std::exception& ex)