fix memleak in tilecache

This commit is contained in:
John Cupitt 2014-08-26 17:07:44 +01:00
parent a75ddfbd5a
commit 30aae507a3
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
21/8/14 started 7.40.7
- fix matlab load
- fix memleak in tilecache [Lovell]
12/8/14 started 7.40.6
- more doc fixes

View File

@ -29,6 +29,8 @@
* - could deadlock if downstream raised an error (thanks Todd)
* 25/4/13
* - cache minimisation is optional, see "persistent" flag
* 26/8/14 Lovell
* - free the hash table in _dispose()
*/
/*
@ -156,6 +158,10 @@ vips_block_cache_dispose( GObject *gobject )
VIPS_FREEF( vips_g_mutex_free, cache->lock );
VIPS_FREEF( vips_g_cond_free, cache->new_tile );
if( cache->tiles )
g_assert( g_hash_table_size( cache->tiles ) == 0 );
VIPS_FREEF( g_hash_table_destroy, cache->tiles );
G_OBJECT_CLASS( vips_block_cache_parent_class )->dispose( gobject );
}