From baada38ddf61514ca061b35c4983c35a05b0fabd Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 17 Jun 2009 13:42:52 +0000 Subject: [PATCH] 2009-06-16 Marcus Brinkmann * gpgme.c (gpgme_result_unref): Hot fix to release a lock. --- trunk/src/ChangeLog | 2 ++ trunk/src/gpgme.c | 1 + 2 files changed, 3 insertions(+) diff --git a/trunk/src/ChangeLog b/trunk/src/ChangeLog index 93108af..d7b4592 100644 --- a/trunk/src/ChangeLog +++ b/trunk/src/ChangeLog @@ -1,5 +1,7 @@ 2009-06-16 Marcus Brinkmann + * gpgme.c (gpgme_result_unref): Hot fix to release a lock. + * gpgme.c (result_ref_lock): New global variable. (gpgme_result_ref, gpgme_result_unref): use it. diff --git a/trunk/src/gpgme.c b/trunk/src/gpgme.c index 73788e7..3283b34 100644 --- a/trunk/src/gpgme.c +++ b/trunk/src/gpgme.c @@ -211,6 +211,7 @@ gpgme_result_unref (void *result) UNLOCK (result_ref_lock); return; } + UNLOCK (result_ref_lock); if (data->cleanup) (*data->cleanup) (data->hook); -- 2.26.2