On Mon, Sep 10, 2012 at 1:36 PM, Rafael Schloming <[email protected]> wrote: > On Mon, Sep 10, 2012 at 9:26 AM, Darryl L. Pierce <[email protected]>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 host language. Regards, Rajith
