From: Marcus Brinkmann Date: Wed, 17 Jun 2009 13:42:52 +0000 (+0000) Subject: 2009-06-16 Marcus Brinkmann X-Git-Tag: gpgme-1.3.0~68 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c17b3343bfbebdd58b02a95c8a090133228894d;p=gpgme.git 2009-06-16 Marcus Brinkmann * gpgme.c (gpgme_result_unref): Hot fix to release a lock. --- 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);