From f652e56abe889e0e4d3e707add2125ac5948d73f Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 10 Mar 2010 20:12:39 +0000 Subject: [PATCH] oops, keep Render alive for longer --- libvips/iofuncs/im_render.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libvips/iofuncs/im_render.c b/libvips/iofuncs/im_render.c index 8a06e3b9..8b816518 100644 --- a/libvips/iofuncs/im_render.c +++ b/libvips/iofuncs/im_render.c @@ -324,8 +324,6 @@ render_dirty_get( void ) if( render_dirty_all ) { render = (Render *) render_dirty_all->data; - g_assert( render->ref_count == 1 ); - /* Ref the render to make sure it can't die while we're * working on it. */ @@ -481,9 +479,6 @@ render_thread_main( void *client ) render_dirty_put( render ); - g_assert( render->ref_count == 1 || - render->ref_count == 2 ); - /* _get() does a ref to make sure we keep the render * alive during processing ... unref before we loop. * This can kill off the render. @@ -491,6 +486,8 @@ render_thread_main( void *client ) render_unref( render ); } } + + return( NULL ); } /* Create our set of RenderThread. Assume we're single-threaded here.