diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-07-03 18:52:30 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-07-03 18:52:30 +0200 |
commit | 29d7a7f90140262987b59905b788fce195638e82 (patch) | |
tree | bea08a71749af9e2d6ac90d2dbebc2353b57d879 /cpp/src/slice2objc/ObjCUtil.cpp | |
parent | Fixed servant locator leak (diff) | |
download | ice-29d7a7f90140262987b59905b788fce195638e82.tar.bz2 ice-29d7a7f90140262987b59905b788fce195638e82.tar.xz ice-29d7a7f90140262987b59905b788fce195638e82.zip |
Additional Objective-C leak fixes for ICE-8204
Diffstat (limited to 'cpp/src/slice2objc/ObjCUtil.cpp')
-rw-r--r-- | cpp/src/slice2objc/ObjCUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2objc/ObjCUtil.cpp b/cpp/src/slice2objc/ObjCUtil.cpp index 3cdb4da3107..253519c837a 100644 --- a/cpp/src/slice2objc/ObjCUtil.cpp +++ b/cpp/src/slice2objc/ObjCUtil.cpp @@ -871,11 +871,11 @@ Slice::ObjCGenerator::writeMarshalUnmarshalCode(Output &out, const TypePtr& type { if(autoreleased) { - out << nl << param << " = [" << name << " read:" << stream << " value:" << param << "];"; + out << nl << "[" << name << " read:" << stream << " value:&" << param << "];"; } else { - out << nl << param << " = [" << name << " readRetained:" << stream << " value:" << param << "];"; + out << nl << "[" << name << " readRetained:" << stream << " value:&" << param << "];"; } } else |