aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpgme/w32-io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpgme/w32-io.c b/gpgme/w32-io.c
index 13ce15b8..9ae22f54 100644
--- a/gpgme/w32-io.c
+++ b/gpgme/w32-io.c
@@ -570,10 +570,10 @@ static void
destroy_writer (struct writer_context_s *c)
{
LOCK (c->mutex);
- ctx->refcount--;
- if (ctx->refcount != 0)
+ c->refcount--;
+ if (c->refcount != 0)
{
- UNLOCK (ctx->mutex);
+ UNLOCK (c->mutex);
return;
}
c->stop_me = 1;