2009-06-16 Marcus Brinkmann <marcus@g10code.de>

* gpgme.c (gpgme_result_unref): Hot fix to release a lock.
This commit is contained in:
Marcus Brinkmann 2009-06-17 13:42:52 +00:00
parent bebd9cbe29
commit 9c17b3343b
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2009-06-16 Marcus Brinkmann <marcus@g10code.de> 2009-06-16 Marcus Brinkmann <marcus@g10code.de>
* gpgme.c (gpgme_result_unref): Hot fix to release a lock.
* gpgme.c (result_ref_lock): New global variable. * gpgme.c (result_ref_lock): New global variable.
(gpgme_result_ref, gpgme_result_unref): use it. (gpgme_result_ref, gpgme_result_unref): use it.

View File

@ -211,6 +211,7 @@ gpgme_result_unref (void *result)
UNLOCK (result_ref_lock); UNLOCK (result_ref_lock);
return; return;
} }
UNLOCK (result_ref_lock);
if (data->cleanup) if (data->cleanup)
(*data->cleanup) (data->hook); (*data->cleanup) (data->hook);