Re: [PATCH 7/7] python: wrap and use notmuch_database_destroy as destructor

Subject: Re: [PATCH 7/7] python: wrap and use notmuch_database_destroy as destructor

Date: Fri, 20 Apr 2012 15:10:04 +0200

To: Austin Clements, Justus Winter

Cc: notmuch@notmuchmail.org

From: Sebastian Spaeth


Austin Clements <amdragon@MIT.EDU> writes:
> (I think it also doesn't make sense to expose notmuch_database_destroy
> as a general, public method since it will free all of the other C
> objects out from under the bindings, resulting in exactly the double
> free-type crashes that you're trying to avoid.  It appears that none
> of the other Python classes have a destroy method.)

Agreed, that sounds right to me.

Sebastian
part-000.sig (application/pgp-signature)

Thread: