Re: [protobuf] Re: protobuffer suport composite object in stack not in heap?

2011-01-04 Thread Igor Gatis
On Tue, Jan 4, 2011 at 9:38 PM, Kenton Varda ken...@google.com wrote: I think this would be too complicated to integrate into the official C++ implementation. You could, however, write an alternative protobuf implementation that provides this. Note that with the official implementation, you

Re: [protobuf] Re: protobuffer suport composite object in stack not in heap?

2011-01-04 Thread Kenton Varda
On Tue, Jan 4, 2011 at 5:25 PM, Igor Gatis igorga...@gmail.com wrote: A while ago, a colleague had a memory leak reusing a PB message which contained a repeated field. If I'm not mistaken the problem was that pb_message::Clear() calls vectorsomething::clear() and string::clear() which does