Fixed last change.

This commit is contained in:
Marcus Brinkmann 2007-07-16 17:47:00 +00:00
parent 174bf90842
commit d1e40ac15f

View File

@ -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;