From 9c17b3343bfbebdd58b02a95c8a090133228894d 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. --- src/ChangeLog | 2 ++ src/gpgme.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 93108af..d7b4592 100644 --- a/src/ChangeLog +++ b/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/src/gpgme.c b/src/gpgme.c index 73788e7..3283b34 100644 --- a/src/gpgme.c +++ b/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