oop, test for vips_object_all NULL

This commit is contained in:
John Cupitt 2011-06-01 15:20:50 +01:00
parent 45b582678f
commit f1b8b7e735
1 changed files with 2 additions and 1 deletions

View File

@ -1620,7 +1620,8 @@ vips_object_print_all_cb( VipsObject *object, int *n )
void
vips_object_print_all( void )
{
if( g_hash_table_size( vips__object_all ) > 0 ) {
if( vips__object_all &&
g_hash_table_size( vips__object_all ) > 0 ) {
int n;
printf( "%d objects alive:\n",