From f1b8b7e735c75a7860be4ba53187d1b9c3abddbb Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 1 Jun 2011 15:20:50 +0100 Subject: [PATCH] oop, test for vips_object_all NULL --- libvips/iofuncs/object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvips/iofuncs/object.c b/libvips/iofuncs/object.c index 8b2fc3b2..fe5484b4 100644 --- a/libvips/iofuncs/object.c +++ b/libvips/iofuncs/object.c @@ -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",