Isn't this a common scenario in C++ for which stdlib provides a simple
solution, std::auto_ptr? std::auto_ptr is a lightweight class designed
to "RAIIify" pointers.  What am I missing?

On Mar 4, 3:06 pm, Kenton Varda <[email protected]> wrote:
> http://code.google.com/p/protobuf/issues/detail?id=54
>
> On Wed, Mar 4, 2009 at 3:50 AM, Adam <[email protected]> wrote:
>
> > Hi,
>
> > I'm using protocol buffers in my project (C++), and while I was
> > hunting for memory leaks, I discovered that in the generated code,
> > static members are being allocated, but there's no way to free them.
> > It's not a major issue, because the leak only occur when you exit the
> > application (and the static members are not being free as they
> > should), but I would like to know if you are aware of this issue, and
> > is there a workaround or any other solution?
>
> > Thanks,
>
> > Adam Oren
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to