test for tracked files goinf <0

This commit is contained in:
John Cupitt 2011-11-04 14:47:11 +00:00
parent 7352d51053
commit cbb902efcb
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ vips_tracked_close( int fd )
{
g_mutex_lock( vips_tracked_mutex );
g_assert( vips_tracked_files > 0 );
vips_tracked_files -= 1;
g_mutex_unlock( vips_tracked_mutex );