On Thu, Sep 13, 2012 at 04:46:00PM -0400, Rajith Attapattu wrote:
> 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
> host language.

I'll take a look at that. I did use some simple Ruby to make sure that a
destructor method is invoked on garbage collection and also shutdown,
but will look at something more automated like this. Thanks. :)

Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.

Attachment: pgp89oo4hSgky.pgp
Description: PGP signature

Reply via email to