You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ge...@apache.org on 2009/07/21 19:22:04 UTC
svn commit: r796391 -
/incubator/thrift/trunk/compiler/cpp/src/generate/t_cocoa_generator.cc
Author: geechorama
Date: Tue Jul 21 17:22:03 2009
New Revision: 796391
URL: http://svn.apache.org/viewvc?rev=796391&view=rev
Log:
THRIFT-545. Fix mem leak in generated 'description' method
Modified:
incubator/thrift/trunk/compiler/cpp/src/generate/t_cocoa_generator.cc
Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_cocoa_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_cocoa_generator.cc?rev=796391&r1=796390&r2=796391&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_cocoa_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_cocoa_generator.cc Tue Jul 21 17:22:03 2009
@@ -966,7 +966,7 @@
}
out <<
indent() << "[ms appendString: @\")\"];" << endl <<
- indent() << "return [ms copy];" << endl;
+ indent() << "return [NSString stringWithString: ms];" << endl;
indent_down();
indent(out) << "}" << endl <<