2009-06-16 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Wed, 17 Jun 2009 13:42:52 +0000 (13:42 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Wed, 17 Jun 2009 13:42:52 +0000 (13:42 +0000)
* gpgme.c (gpgme_result_unref): Hot fix to release a lock.

src/ChangeLog
src/gpgme.c

index 93108af5bf6a1c301e77c738168d524f89ae6a7c..d7b4592e38b1ea06bb2e57a036f25f250e9b4215 100644 (file)
@@ -1,5 +1,7 @@
 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_result_ref, gpgme_result_unref): use it.
 
index 73788e7e7f74771141154985c7c43c97acb1f0c5..3283b34229c5f4df6c4f8dba69d50cc132cf70f5 100644 (file)
@@ -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);