more leak tweaks
fewer noisy messages, more checking
This commit is contained in:
parent
0f46696f16
commit
1374b47e0f
@ -294,6 +294,12 @@ vips_shutdown( void )
|
|||||||
if( vips__leak )
|
if( vips__leak )
|
||||||
vips_object_print_all();
|
vips_object_print_all();
|
||||||
|
|
||||||
|
/* In dev releases, always show leaks.
|
||||||
|
*/
|
||||||
|
#ifdef DEBUG_LEAK
|
||||||
|
vips_object_print_all();
|
||||||
|
#endif /*DEBUG_LEAK*/
|
||||||
|
|
||||||
im_close_plugins();
|
im_close_plugins();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,13 +65,11 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
#define DEBUG_FATAL
|
#define DEBUG_FATAL
|
||||||
#define DEBUG_LEAK
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Need to disable these sometimes.
|
/* Need to disable these sometimes.
|
||||||
#undef DEBUG_FATAL
|
#undef DEBUG_FATAL
|
||||||
#undef DEBUG_LEAK
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
@ -1014,14 +1012,8 @@ main( int argc, char **argv )
|
|||||||
G_LOG_LEVEL_ERROR |
|
G_LOG_LEVEL_ERROR |
|
||||||
G_LOG_LEVEL_CRITICAL |
|
G_LOG_LEVEL_CRITICAL |
|
||||||
G_LOG_LEVEL_WARNING );
|
G_LOG_LEVEL_WARNING );
|
||||||
|
|
||||||
fprintf( stderr, "*** DEBUG_FATAL: will abort() on first warning\n" );
|
|
||||||
#endif /*!DEBUG_FATAL*/
|
#endif /*!DEBUG_FATAL*/
|
||||||
|
|
||||||
#ifdef DEBUG_LEAK
|
|
||||||
fprintf( stderr, "*** DEBUG_LEAK: will leak test on exit\n" );
|
|
||||||
#endif /*!DEBUG_LEAK*/
|
|
||||||
|
|
||||||
/* Try to find our action.
|
/* Try to find our action.
|
||||||
*/
|
*/
|
||||||
action = NULL;
|
action = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user