diff --git a/libvips/iofuncs/init.c b/libvips/iofuncs/init.c index 1ed70688..fccd1aa0 100644 --- a/libvips/iofuncs/init.c +++ b/libvips/iofuncs/init.c @@ -436,6 +436,7 @@ vips__atexit( void ) if( !done ) { done = TRUE; + vips_cache_drop_all(); vips_leak(); } }