On Mon, Sep 10, 2012 at 1:36 PM, Rafael Schloming <r...@alum.mit.edu> wrote:
> On Mon, Sep 10, 2012 at 9:26 AM, Darryl L. Pierce <dpie...@redhat.com>wrote:
> methods on Messenger and Message objects and by tying pn_messenger_free and
> pn_message_free into the respective destructors, we could make things a
> whole lot safer, e.g. avoid dangling pointers and the like that a user
> could use to segfault the interpreter.
Darryl, you could use %typemap(freearg) to ensure the respective free
function is called to cleanup.
How it gets called is also automatically handled by swig based on the