check for init before render shutdown
we could shut down render without having inited it, check thanks andrea
This commit is contained in:
parent
2cbaacbb0b
commit
f582c1bd4e
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user