diff --git a/src/ChangeLog b/src/ChangeLog index 93108af5..d7b4592e 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 73788e7e..3283b342 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);