check for init before render shutdown

we could shut down render without having inited it, check

thanks andrea
This commit is contained in:
John Cupitt 2014-01-31 14:48:15 +00:00
parent 2cbaacbb0b
commit f582c1bd4e
1 changed files with 5 additions and 0 deletions

View File

@ -521,6 +521,11 @@ render_thread_main( void *client )
void
vips__render_shutdown( void )
{
/* We may come here without having inited.
*/
if( !render_dirty_lock )
return;
g_mutex_lock( render_dirty_lock );
if( render_thread ) {