Fixed last change.

This commit is contained in:
Marcus Brinkmann 2007-07-16 17:47:00 +00:00
parent 58b2364861
commit ec767f3e30

View File

@ -570,10 +570,10 @@ static void
destroy_writer (struct writer_context_s *c) destroy_writer (struct writer_context_s *c)
{ {
LOCK (c->mutex); LOCK (c->mutex);
ctx->refcount--; c->refcount--;
if (ctx->refcount != 0) if (c->refcount != 0)
{ {
UNLOCK (ctx->mutex); UNLOCK (c->mutex);
return; return;
} }
c->stop_me = 1; c->stop_me = 1;