From: Marcus Brinkmann Date: Mon, 16 Jul 2007 17:47:00 +0000 (+0000) Subject: Fixed last change. X-Git-Tag: gpgme-1.1.6~45 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d1e40ac15ff28c16660cd14a4f30b5c3e8be977a;p=gpgme.git Fixed last change. --- diff --git a/gpgme/w32-io.c b/gpgme/w32-io.c index 13ce15b..9ae22f5 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;