#18 add missing dispose call when flushing the cache for memory-leak testing