Re: [PATCH 0/2] Multiples calls of g_mime_init

Subject: Re: [PATCH 0/2] Multiples calls of g_mime_init

Date: Sat, 31 Dec 2011 01:30:28 -0000

To: Patrick Totzke,, David Bremner


From: Kazuo Teramoto

On 2011-12-30T23:16:47, Patrick Totzke wrote:

>It seeminly doesn't break things either and I'm all in favour of doing
>things rightâ„¢.

And talking about doing things right, we probably need to call
g_mime_shutdown() too, one for every time we call g_mime_init(). I will
send a patch after I do some more tests.

>On a related note: It also doesn't fix the recent segfaults of the bindings
>that occur when you try to write to a locked database.
>cf ""

This still hit me. If I remember right when I did a test what is
happening is that the binding is trying to close the db, so we need a
check if the db is opened before trying to close it.